Created
May 30, 2014 17:11
-
-
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.
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
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