[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Fab-user] Uploading different files to different remote hosts
From: |
Jeff Honey |
Subject: |
RE: [Fab-user] Uploading different files to different remote hosts |
Date: |
Thu, 21 Oct 2010 13:27:58 -0400 |
another solution is to group your hosts in a role (or several roles) and loop
through them. Fabric naturally does this for you
e.g.:
env.roledefs = {
'group1': ['server1', 'server2', 'server3']
}
@roles('group1')
def somefunction():
put('file','destination')
--
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
¤ kyoboku kazeoshi ¤
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤