Thursday, 19 September 2013

Execute task on hosts which match a pattern

Execute task on hosts which match a pattern

We use this pattern for our hosts (and linux users):
coreapp_customer_stageID@server
I want to run fabric commands on a list of hosts which match a pattern.
Example: I want to run "date" on all hosts of core app "foocms" of
customer "c1".
I could use roles, but there are a lot of customers ... A glob matching
way would be good.

No comments:

Post a Comment