Skip to content

Instantly share code, notes, and snippets.

@rothgar
Created May 14, 2014 18:35
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 rothgar/322ebb64ad165db30802 to your computer and use it in GitHub Desktop.
Save rothgar/322ebb64ad165db30802 to your computer and use it in GitHub Desktop.
salt-master jinaja template
{% if 'file_roots' in master -%}
file_roots:
{% for name, roots in master['file_roots'].items() -%}
{{ name }}:
{% for dir in roots -%}
- {{ dir }}
{% endfor -%}
{% endfor -%}
{% elif 'file_roots' in salt -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment