Skip to content

Instantly share code, notes, and snippets.

Created September 12, 2017 04:07
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 anonymous/e32927aeba0a7fb041bef3bdd5822367 to your computer and use it in GitHub Desktop.
Save anonymous/e32927aeba0a7fb041bef3bdd5822367 to your computer and use it in GitHub Desktop.
{% set ot_config_pwfiles = salt[pillar.get](
'ot_config_pwfiles',
default={},
merge=True
) %}
{% for pwfile, property in ot_config_pwfiles %}
ot_config_pwfile_{{pwfile}}:
file.managed:
name: {{ pwfile.name }}
user: {{ pwfile.user }}
group: {{ pwfile.group }}
mode: {{ pwfile.mode }}
contents: {{ pwfile.contents }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment