Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
337B

  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- for name, dir in system.directory.items() %}
  3. {{ dir.name|default(name) }}:
  4. file.directory:
  5. {%- if dir %}
  6. {%- for key, value in dir.items() %}
  7. - {{ key }}: {{ value }}
  8. {%- endfor %}
  9. {%- else %}
  10. - name: {{ name }}
  11. {%- endif %}
  12. {%- endfor %}