Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Last active April 6, 2017 16:33
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 whytewolf/3f67cef65b7e69bdfb9ba3f5fa076541 to your computer and use it in GitHub Desktop.
Save whytewolf/3f67cef65b7e69bdfb9ba3f5fa076541 to your computer and use it in GitHub Desktop.
create_nested:
file.directory:
- names:
{% for i in salt['pillar.get']('dir1') %}
- /root/{{i}}
{% endfor %}
{% for i in salt['pillar.get']('dir1') %}
create_{{i}}:
file.directory:
- name: /root/{{i}}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment