Created
January 18, 2013 23:08
-
-
Save inthecloud247/4569472 to your computer and use it in GitHub Desktop.
my salt top.sls file that handles multiple environments...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!mako|yaml | |
base: | |
'*': | |
- base.services | |
- base.states | |
'environment:localdev': | |
- match: grain | |
- localdev.services | |
- localdev.states | |
% for role in grains['roles']: | |
- localdev.role-${role} | |
% endfor | |
'environment:dev': | |
- match: grain | |
- dev.services | |
- dev.states | |
% for role in grains['roles']: | |
- dev.role-${role} | |
% endfor | |
'environment:staging': | |
- match: grain | |
- staging.services | |
- staging.states | |
% for role in grains['roles']: | |
- staging.role-${role} | |
% endfor | |
'environment:prod': | |
- match: grain | |
- prod.services | |
- prod.states | |
% for role in grains['roles']: | |
- prod.role-${role} | |
% endfor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment