Commit 3330e6cf authored by Leonard Marschke's avatar Leonard Marschke

initial commit

parents
*.pyc
.idea/
#!/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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment