-
Notifications
You must be signed in to change notification settings - Fork 0
Config: Groups
tylerflint edited this page May 7, 2013
·
1 revision
A group configuration is a simple way to group members and member configuration.
Example:
config.group :routers do |group|
group.user = 'root'
group.password = 'root'
group.key = 'path/to/keyfile'
group.images = %w(base ruby mysql)
group.data = {}
group.member :m1 do |member|
member.host = '192.168.1.3'
end
group.member :m2 do |member|
member.host = '192.168.1.4'
end
end
As indicated in the example above, all members of the group will inherit the group attributes. Members can override attributes if necessary.
Assuming the group above has been defined, you could provision all the members at the same time like this:
cater provision routers
Or, you could provision just one member of the group:
cater provision routers::m1