Browse Source

Fix file mode in file.managed state

file.managed use "mode" option and not "file_mode" to configure the
perms of the managed file.
See: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed
pull/142/head
Bruno Binet 6 years ago
parent
commit
4a19d09d4d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      linux/system/file.sls

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

- makedirs: {{ file.get('makedirs', 'True') }} - makedirs: {{ file.get('makedirs', 'True') }}
- user: {{ file.get('user', 'root') }} - user: {{ file.get('user', 'root') }}
- group: {{ file.get('group', 'root') }} - group: {{ file.get('group', 'root') }}
{%- if file.file_mode is defined %}
- file_mode: {{ file.file_mode }}
{%- if file.mode is defined %}
- mode: {{ file.mode }}
{%- endif %} {%- endif %}
{%- if file.dir_mode is defined %} {%- if file.dir_mode is defined %}
- dir_mode: {{ file.dir_mode }} - dir_mode: {{ file.dir_mode }}

Loading…
Cancel
Save