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.managedpull/142/head
@@ -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 }} |