style: prepend modes with 0

per https://github.com/warpnet/salt-lint/wiki/208
This commit is contained in:
jason shaw 2020-10-02 13:49:13 -04:00
parent b9c4fbadaf
commit fdc127c8db
2 changed files with 11 additions and 11 deletions

View File

@ -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:

View File

@ -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') }}