style: quote modes/numbers

salt-lint complains about these
This commit is contained in:
jason shaw 2020-10-02 13:40:30 -04:00
parent cff88afa90
commit b9c4fbadaf
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: '755'
- file_mode: '644'
- 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: '644'
- 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: '640'
- 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: '640'
- 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: '640'
- 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: '644'
- 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: '600'
- 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: '600'
{%- else %}
- mode: 644
- mode: '644'
{%- endif %}
- template: jinja
- context:

View File

@ -66,7 +66,7 @@ postfix_alias_database:
{% endif %}
- user: root
- group: {{ postfix.root_grp }}
- mode: 644
- mode: '644'
- template: jinja
- context:
data: {{ salt['pillar.get']('postfix:aliases:present') }}