You can use roles or hosts with callables as long as they return lists. Being that Fabric is just python, you have all the tools and libraries that python provides for populating this list. Some people query databases, some use flat files with host lists, others use things like cuisine to work off of chef definitions that they've already made.
-goose On Fri, May 4, 2012 at 4:19 PM, JA <[email protected]> wrote: > Hi Everyone; > > I am really just looking for creative ideas here and was hoping that > some of you who have more experience with Fabric might be able to make > some suggestions. > > For certain tasks and jobs, I may have a large number of servers that > I need to interact with. Attempting to store all of the hosts in a > variable in the fabfile is not a very manageable option. I am looking > for a way to dynamically set the env.hosts at runtime by reading a > file or some other method but, I am very new to Fabric and was > wondering how anyone else might have tackled this challenge which I am > sure is not unique to my environment. > > Thanks in advance! > JA > > _______________________________________________ > Fab-user mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/fab-user _______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
