Created
March 19, 2017 11:25
-
-
Save alex-zel/42478ca59cb5c24f3892c408e6aa8371 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
dev: | |
'fqdn:*.example.com': | |
- match: grain | |
- aliases | |
{% for minion in salt['minion.list']()['minions'] %} | |
{{ minion }}: | |
- hosts.{{ minion.split('.')[0] }} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment