Skip to content

Commit 98831f2

Browse files
authored
Merge pull request #116 from jasonious/properly-quote-modes
style: quote modes/numbers
2 parents cff88af + fdc127c commit 98831f2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

postfix/config.sls

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ include:
66
file.directory:
77
- user: root
88
- group: {{ postfix.root_grp }}
9-
- dir_mode: 755
10-
- file_mode: 644
9+
- dir_mode: '0755'
10+
- file_mode: '0644'
1111
- makedirs: True
1212
1313
{{ postfix.config_path }}/main.cf:
1414
file.managed:
1515
- source: salt://postfix/files/main.cf
1616
- user: root
1717
- group: {{ postfix.root_grp }}
18-
- mode: 644
18+
- mode: '0644'
1919
- require:
2020
- pkg: postfix
2121
- watch_in:
@@ -30,7 +30,7 @@ include:
3030
- source: salt://postfix/files/virtual_alias_maps.cf
3131
- user: root
3232
- group: postfix
33-
- mode: 640
33+
- mode: '0640'
3434
- require:
3535
- pkg: postfix
3636
- watch_in:
@@ -42,7 +42,7 @@ include:
4242
- source: salt://postfix/files/virtual_mailbox_domains.cf
4343
- user: root
4444
- group: postfix
45-
- mode: 640
45+
- mode: '0640'
4646
- require:
4747
- pkg: postfix
4848
- watch_in:
@@ -54,7 +54,7 @@ include:
5454
- source: salt://postfix/files/virtual_mailbox_maps.cf
5555
- user: root
5656
- group: postfix
57-
- mode: 640
57+
- mode: '0640'
5858
- require:
5959
- pkg: postfix
6060
- watch_in:
@@ -69,7 +69,7 @@ include:
6969
- source: salt://postfix/files/master.cf
7070
- user: root
7171
- group: {{ postfix.root_grp }}
72-
- mode: 644
72+
- mode: '0644'
7373
- require:
7474
- pkg: postfix
7575
- watch_in:
@@ -94,7 +94,7 @@ postfix_{{ domain }}_ssl_certificate:
9494
postfix_{{ domain }}_ssl_key:
9595
file.managed:
9696
- name: {{ postfix.config_path }}/ssl/{{ domain }}.key
97-
- mode: 600
97+
- mode: '0600'
9898
- makedirs: True
9999
- contents_pillar: postfix:certificates:{{ domain }}:private_key
100100
- watch_in:
@@ -127,9 +127,9 @@ postfix_{{ mapping }}:
127127
- user: root
128128
- group: {{ postfix.root_grp }}
129129
{%- if mapping.endswith('_sasl_password_maps') %}
130-
- mode: 600
130+
- mode: '0600'
131131
{%- else %}
132-
- mode: 644
132+
- mode: '0644'
133133
{%- endif %}
134134
- template: jinja
135135
- context:

postfix/init.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ postfix_alias_database:
6666
{% endif %}
6767
- user: root
6868
- group: {{ postfix.root_grp }}
69-
- mode: 644
69+
- mode: '0644'
7070
- template: jinja
7171
- context:
7272
data: {{ salt['pillar.get']('postfix:aliases:present') }}

0 commit comments

Comments
 (0)