simple roledefs example

This commit is contained in:
Stephen McQuay 2013-01-24 18:30:56 -08:00
parent 51bbd51bcb
commit c9f0a3ff1d

8
roldefs.py Normal file
View File

@ -0,0 +1,8 @@
from fabric.api import env, run
env.roledefs = {
'web': ['web1', 'web2', 'web3'],
'db': ['db1', 'db2']
}
def hello():
run('hostname')