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

@@ -352,7 +352,7 @@ Ensure presence of file by specifying it's source:
source: http://example.com/test.txt
user: root
group: root
file_mode: 700
mode: 700
dir_mode: 700
encoding: utf-8
hash: <<md5 hash>>
@@ -371,7 +371,7 @@ Ensure presence of file by specifying it's contents:
line2
user: root
group: root
file_mode: 700
mode: 700
dir_mode: 700
encoding: utf-8
hash: <<md5 hash>>

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

@@ -17,8 +17,8 @@
- makedirs: {{ file.get('makedirs', 'True') }}
- user: {{ file.get('user', '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 %}
{%- if file.dir_mode is defined %}
- dir_mode: {{ file.dir_mode }}

Loading…
Cancel
Save