Skip to content

Instantly share code, notes, and snippets.

@waynew
Last active December 10, 2016 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waynew/9d945c2a6e3d2fd51dc470e6a55db35f to your computer and use it in GitHub Desktop.
Save waynew/9d945c2a6e3d2fd51dc470e6a55db35f to your computer and use it in GitHub Desktop.
now with more templatey bits
hostname: gru
etc:
hosts: |
# This file is managed by salt.
# Changes will be obliterated with extreme prejudice
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
{% raw -%}
127.0.0.1 {{ pillar['hostname'] }}
{% endraw %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment