Browse Source

Update file.sls

added possibility to delete files
pull/218/head
preussal 4 years ago
parent
commit
758e3e2591
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      linux/system/file.sls

+ 6
- 2
linux/system/file.sls View File

{%- for file_name, file in system.file.items() %} {%- for file_name, file in system.file.items() %}


linux_file_{{ file_name }}: linux_file_{{ file_name }}:
{%- if file.serialize is defined %}
{%- if file.absent is defined and file.absent is sameas true %}
file.absent:

{%- elif file.serialize is defined %}
file.serialize: file.serialize:
- formatter: {{ file.serialize }} - formatter: {{ file.serialize }}
{%- if file.contents is defined %} {%- if file.contents is defined %}
{%- elif file.contents_pillar is defined %} {%- elif file.contents_pillar is defined %}
- dataset_pillar: {{ file.contents_pillar }} - dataset_pillar: {{ file.contents_pillar }}
{%- endif %} {%- endif %}

{%- else %} {%- else %}
file.managed: file.managed:
{%- if file.source is defined %} {%- if file.source is defined %}
{%- if file.encoding is defined %} {%- if file.encoding is defined %}
- encoding: {{ file.encoding }} - encoding: {{ file.encoding }}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}


{%- endif %} {%- endif %}

Loading…
Cancel
Save