Last active
August 29, 2015 14:15
-
-
Save keeth/ec6fcffbda0a521afb17 to your computer and use it in GitHub Desktop.
This file contains 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
base: | |
'*': | |
- ssh | |
- salt | |
'G@roles:cms': | |
- match: compound | |
- cms | |
'G@roles:cms and not G@env:prod': | |
- match: compound | |
- cms_creds | |
'G@roles:trendbot': | |
- match: compound | |
- kafka | |
- microservice | |
# these work in local file_roots mode, but fail to resolve in git pillar mode | |
# if I put them in a separate top.sls in the secrets repo, they work in git pillar mode but are ignored in file_roots mode. | |
'G@env:prod': | |
- match: compound | |
- prod.aws | |
'G@roles:salt-master and G@env:prod': | |
- match: compound | |
- prod.salt | |
'G@roles:cms and G@env:prod': | |
- match: compound | |
- prod.cms |
This file contains 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
ext_pillar: | |
- git: master git@github-salt:sprightco/salt.git root=pillar | |
- git: master git@github-secrets:sprightco/secrets.git root=pillar |
This file contains 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
other:salt [master] keith $ find pillar | |
pillar | |
pillar/cms.sls | |
pillar/cms_creds.sls | |
pillar/kafka.sls | |
pillar/microservice.sls | |
pillar/salt.sls | |
pillar/ssh.sls | |
pillar/top.sls |
This file contains 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
other:secrets [master] keith $ find pillar | |
pillar | |
pillar/prod | |
pillar/prod/aws.sls | |
pillar/prod/cms.sls | |
pillar/prod/salt.sls |
This file contains 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
pillar_roots: | |
base: | |
- /srv/pillar/base # mapped via config.vm.synced_folder "./pillar", "/srv/pillar/base" | |
- /srv/pillar/secrets # mapped via config.vm.synced_folder "../secrets/pillar", "/srv/pillar/secrets" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment