I haven't actively used Fabric in a number of months and it looks like maybe i 
need to revisit my fabfile?


I have this mechanism for looping through hosts in a roledef as part of the 
function:

def function(test_hosts=None):
        for host in env.roledefs[test_hosts]:
                with settings(host_string=host):
                        run('command')

...is this still necessary? do I need to rebuilt my functions? looks like roles 
are still defined as:

env.roledefs = {
        'role': ['host1','host2']
}


...any more elegant solution for Fab users?

--
 ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
¤ kyoboku kazeoshi ¤
 ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to