Browse Source

Merge pull request #142 from bbinet/fix-file-mode

Fix file mode for file.managed state
pull/144/head
Filip Pytloun 6 years ago
parent
commit
98b673bd15
No account linked to committer's email address
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      README.rst
  2. +2
    -2
      linux/system/file.sls

+ 2
- 2
README.rst View File

source: http://example.com/test.txt source: http://example.com/test.txt
user: root user: root
group: root group: root
file_mode: 700
mode: 700
dir_mode: 700 dir_mode: 700
encoding: utf-8 encoding: utf-8
hash: <<md5 hash>> hash: <<md5 hash>>
line2 line2
user: root user: root
group: root group: root
file_mode: 700
mode: 700
dir_mode: 700 dir_mode: 700
encoding: utf-8 encoding: utf-8
hash: <<md5 hash>> hash: <<md5 hash>>

+ 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