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: file.directory:
- user: root - user: root
- group: {{ postfix.root_grp }} - group: {{ postfix.root_grp }}
- dir_mode: 755 - dir_mode: '755'
- file_mode: 644 - file_mode: '644'
- makedirs: True - makedirs: True
{{ postfix.config_path }}/main.cf: {{ postfix.config_path }}/main.cf:
@ -15,7 +15,7 @@ include:
- source: salt://postfix/files/main.cf - source: salt://postfix/files/main.cf
- user: root - user: root
- group: {{ postfix.root_grp }} - group: {{ postfix.root_grp }}
- mode: 644 - mode: '644'
- require: - require:
- pkg: postfix - pkg: postfix
- watch_in: - watch_in:
@ -30,7 +30,7 @@ include:
- source: salt://postfix/files/virtual_alias_maps.cf - source: salt://postfix/files/virtual_alias_maps.cf
- user: root - user: root
- group: postfix - group: postfix
- mode: 640 - mode: '640'
- require: - require:
- pkg: postfix - pkg: postfix
- watch_in: - watch_in:
@ -42,7 +42,7 @@ include:
- source: salt://postfix/files/virtual_mailbox_domains.cf - source: salt://postfix/files/virtual_mailbox_domains.cf
- user: root - user: root
- group: postfix - group: postfix
- mode: 640 - mode: '640'
- require: - require:
- pkg: postfix - pkg: postfix
- watch_in: - watch_in:
@ -54,7 +54,7 @@ include:
- source: salt://postfix/files/virtual_mailbox_maps.cf - source: salt://postfix/files/virtual_mailbox_maps.cf
- user: root - user: root
- group: postfix - group: postfix
- mode: 640 - mode: '640'
- require: - require:
- pkg: postfix - pkg: postfix
- watch_in: - watch_in:
@ -69,7 +69,7 @@ include:
- source: salt://postfix/files/master.cf - source: salt://postfix/files/master.cf
- user: root - user: root
- group: {{ postfix.root_grp }} - group: {{ postfix.root_grp }}
- mode: 644 - mode: '644'
- require: - require:
- pkg: postfix - pkg: postfix
- watch_in: - watch_in:
@ -94,7 +94,7 @@ postfix_{{ domain }}_ssl_certificate:
postfix_{{ domain }}_ssl_key: postfix_{{ domain }}_ssl_key:
file.managed: file.managed:
- name: {{ postfix.config_path }}/ssl/{{ domain }}.key - name: {{ postfix.config_path }}/ssl/{{ domain }}.key
- mode: 600 - mode: '600'
- makedirs: True - makedirs: True
- contents_pillar: postfix:certificates:{{ domain }}:private_key - contents_pillar: postfix:certificates:{{ domain }}:private_key
- watch_in: - watch_in:
@ -127,9 +127,9 @@ postfix_{{ mapping }}:
- user: root - user: root
- group: {{ postfix.root_grp }} - group: {{ postfix.root_grp }}
{%- if mapping.endswith('_sasl_password_maps') %} {%- if mapping.endswith('_sasl_password_maps') %}
- mode: 600 - mode: '600'
{%- else %} {%- else %}
- mode: 644 - mode: '644'
{%- endif %} {%- endif %}
- template: jinja - template: jinja
- context: - context:

View File

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