From fdc127c8db7b19fac9be907ca511b17d5f5c4be0 Mon Sep 17 00:00:00 2001 From: jason shaw Date: Fri, 2 Oct 2020 13:49:13 -0400 Subject: [PATCH] style: prepend modes with 0 per https://github.com/warpnet/salt-lint/wiki/208 --- postfix/config.sls | 20 ++++++++++---------- postfix/init.sls | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/postfix/config.sls b/postfix/config.sls index e81f51b..03608cc 100644 --- a/postfix/config.sls +++ b/postfix/config.sls @@ -6,8 +6,8 @@ include: file.directory: - user: root - group: {{ postfix.root_grp }} - - dir_mode: '755' - - file_mode: '644' + - dir_mode: '0755' + - file_mode: '0644' - makedirs: True {{ postfix.config_path }}/main.cf: @@ -15,7 +15,7 @@ include: - source: salt://postfix/files/main.cf - user: root - group: {{ postfix.root_grp }} - - mode: '644' + - mode: '0644' - require: - pkg: postfix - watch_in: @@ -30,7 +30,7 @@ include: - source: salt://postfix/files/virtual_alias_maps.cf - user: root - group: postfix - - mode: '640' + - mode: '0640' - require: - pkg: postfix - watch_in: @@ -42,7 +42,7 @@ include: - source: salt://postfix/files/virtual_mailbox_domains.cf - user: root - group: postfix - - mode: '640' + - mode: '0640' - require: - pkg: postfix - watch_in: @@ -54,7 +54,7 @@ include: - source: salt://postfix/files/virtual_mailbox_maps.cf - user: root - group: postfix - - mode: '640' + - mode: '0640' - require: - pkg: postfix - watch_in: @@ -69,7 +69,7 @@ include: - source: salt://postfix/files/master.cf - user: root - group: {{ postfix.root_grp }} - - mode: '644' + - mode: '0644' - require: - pkg: postfix - watch_in: @@ -94,7 +94,7 @@ postfix_{{ domain }}_ssl_certificate: postfix_{{ domain }}_ssl_key: file.managed: - name: {{ postfix.config_path }}/ssl/{{ domain }}.key - - mode: '600' + - mode: '0600' - makedirs: True - contents_pillar: postfix:certificates:{{ domain }}:private_key - watch_in: @@ -127,9 +127,9 @@ postfix_{{ mapping }}: - user: root - group: {{ postfix.root_grp }} {%- if mapping.endswith('_sasl_password_maps') %} - - mode: '600' + - mode: '0600' {%- else %} - - mode: '644' + - mode: '0644' {%- endif %} - template: jinja - context: diff --git a/postfix/init.sls b/postfix/init.sls index a31c886..b18b530 100644 --- a/postfix/init.sls +++ b/postfix/init.sls @@ -66,7 +66,7 @@ postfix_alias_database: {% endif %} - user: root - group: {{ postfix.root_grp }} - - mode: '644' + - mode: '0644' - template: jinja - context: data: {{ salt['pillar.get']('postfix:aliases:present') }}