Last active
December 29, 2015 15:29
-
-
Save techdragon/7691032 to your computer and use it in GitHub Desktop.
Cant understand the cause of the error here.
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
local: | |
Data failed to compile: | |
---------- | |
Malformed topfile (state declarations not formed as a list) |
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
etc: | |
hosts: | |
salt: 10.10.10.10 | |
minion: 10.20.20.20 |
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
{% if pillar['etc']['hosts'] %} | |
{% for host, ip in salt['pillar.get']('etc:hosts').items() %} | |
etc_hosts_entry_{{ host }}: | |
host.present: | |
- ip: {{ ip }} | |
- names: | |
- {{ host }} | |
{% endfor %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment