Skip to content

Instantly share code, notes, and snippets.

@SEJeff
Created March 27, 2013 20:36
Show Gist options
  • Save SEJeff/5257789 to your computer and use it in GitHub Desktop.
Save SEJeff/5257789 to your computer and use it in GitHub Desktop.
Example salt config for preferencing dev but falling back to prod
# 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
@SEJeff
Copy link
Author

SEJeff commented Mar 27, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment