Last active
November 26, 2015 09:30
-
-
Save seenae/a12debd5da1546d7e403 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
[root@saltm pillar]# salt `hostname` pillar.get my_hosts:profiles | |
saltm.prod.riva.com: | |
- app.profiles.abc.prod | |
- app.profiles.base | |
- app.profiles.abc.xyz.prod | |
- app.profiles.abc.redis.prod | |
[root@saltm pillar]# ll profiles/ | |
total 4 | |
-rw-r--r-- 1 root root 528 Nov 26 07:57 app.profiles.base | |
-rw-r--r-- 1 root root 0 Nov 26 07:45 app.profiles.abc.xyz.prod | |
-rw-r--r-- 1 root root 0 Nov 26 07:45 app.profiles.abc.prod | |
-rw-r--r-- 1 root root 0 Nov 26 07:45 app.profiles.abc.redis.prod | |
[root@saltm pillar]# cat top.sls | |
base: | |
'*': | |
- aws | |
{% for profile in salt['pillar.get']('my_hosts:profiles', []) %} | |
- profiles/{{profile}} | |
{% endfor %} | |
[root@saltm pillar]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment