Skip to content

Instantly share code, notes, and snippets.

Created September 8, 2015 18:18
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/82ebc38c0591c2da9a40 to your computer and use it in GitHub Desktop.
Save anonymous/82ebc38c0591c2da9a40 to your computer and use it in GitHub Desktop.
items:
one:
- 'a'
- 'b'
- 'c'
two:
- 'd'
- 'e'
- 'f'
{% for key,value in salt['pillar.get']('items', []).items() %}
{% for item in value %}
{{ item }}_echo:
cmd.run:
- name: 'echo "{{ item }} from list {{ key }}"'
{% endfor %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment