Skip to content

Instantly share code, notes, and snippets.

@UtahDave
Created May 30, 2014 17:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UtahDave/5e2f269668480c6b8c43 to your computer and use it in GitHub Desktop.
Save UtahDave/5e2f269668480c6b8c43 to your computer and use it in GitHub Desktop.
Example of using Salt Environments to only use _grains in the base environment.
file_roots:
base:
- /srv/salt/default_states
- /srv/salt/aws_stuff
vagrant:
- /srv/salt/default_states
Then place your aws specific custom grains in /srv/salt/aws_stuff/_grains
This way your aws and your vagrant VMs will use the exact same states, but only
the aws VMs will get the custom aws grains.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment