[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Fab-user] order control
From: |
Jeff Honey |
Subject: |
RE: [Fab-user] order control |
Date: |
Thu, 14 Oct 2010 09:43:51 -0400 |
<snip>
from fabric.api import *
env.hosts = ['foo1.com', 'foo2.com', 'foo3.com', 'foo4.com', 'foo5.com',
'foo6.com']
def putfile():
put(r'c:\blah.txt', '/tmp/')
run('touch /tmp/blah.txt')
</snip>
I checked and double-checked that there were no dupes in my list. Previously it
was using this:
<snip>
from fabric.api import *
env.roledefs = {
'servers': ['foo1.com', 'foo2.com', 'foo3.com', 'foo4.com', 'foo5.com',
'foo6.com'],
}
@roles('servers')
def putfile():
put(r'c:\blah.txt', '/tmp/')
run('touch /tmp/blah.txt')
</snip>
...the behaviour I was expecting was for the function 'pufile()' to happen on
foo1.com first and then go through the rest of the list in order.
--
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
¤ kyoboku kazeoshi ¤
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
________________________________________
From: Morgan Goose address@hidden
Sent: Thursday, October 14, 2010 9:26
To: Jeff Honey
Subject: Re: [Fab-user] order control
If I recall the hosts all get sent through a set() conversion to remove
duplicates, that would make the order undefined. Do you have an example fabfile
we can look at?