Created
March 27, 2013 20:36
-
-
Save SEJeff/5257789 to your computer and use it in GitHub Desktop.
Example salt config for preferencing dev but falling back to prod
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
# This would go in /etc/salt/master | |
file_roots: | |
base: | |
- /srv/salt/base | |
dev: | |
- /srv/salt/dev | |
- /srv/salt/qa | |
- /srv/salt/base | |
qa: | |
- /srv/salt/qa | |
- /srv/salt/base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This allows you to put a set of states in dev, test them and tweak them, move them to qa, test them, and then move them to base, which is your production environment.
The beauty of this is that once you've moved them, the previous (dev/qa) will still fall back to the production version so all will be well.