saltstack/salt — Issue #668: minions should have roles
Author: pille
Created: 2012-02-09 19:35:27+00:00
State: open

the salt-admin should be able to assign roles to a minion.
it's basically one or more arbitrary tags that should be reported as a grain, like:

grains['role'].is('webserver')

or

grains['role'].isnot('public')

i don't know, if it's best configured on the master, or the minion, but i tend towards the latter.
so perhaps we could have a /etc/salt/roles.yml like:

roles:
- webserver
- public
- ...

this way, we can manage it using salt ;-)