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.

directory.sls 387B

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