fabpreso/roldefs.py

9 lines
147 B
Python
Raw Normal View History

2013-01-24 18:30:56 -08:00
from fabric.api import env, run
env.roledefs = {
'web': ['web1', 'web2', 'web3'],
'db': ['db1', 'db2']
}
def hello():
run('hostname')