Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openStackInstall
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
BPdbSystel
openStackInstall
Commits
3330e6cf
Commit
3330e6cf
authored
Jan 09, 2017
by
Leonard Marschke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
.gitignore
.gitignore
+3
-0
fabfile.py
fabfile.py
+25
-0
No files found.
.gitignore
0 → 100644
View file @
3330e6cf
*.pyc
.idea/
fabfile.py
0 → 100644
View file @
3330e6cf
#!/usr/bin/env python
from
fabric.api
import
*
env
.
roledefs
=
{
'controller'
:
[
'fw@192.168.3.10'
,
],
'node'
:
[
'fw@192.168.3.21'
,
'fw@192.168.3.22'
,
'fw@192.168.3.23'
,
],
}
@
roles
(
'controller'
,
'node'
)
def
noSudoPassword
():
sudo
(
"echo
\"
fw ALL=(ALL) NOPASSWD: ALL
\"
>> /etc/sudoers"
)
@
roles
(
'controller'
,
'node'
)
@
parallel
def
updateSystems
():
sudo
(
"apt-get update"
)
sudo
(
"apt-get upgrade -y"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment