Handle smtp/lmtp password maps file mode
Do not hardcode the key name, even if there is only two at the moment
This commit is contained in:
parent
62ab827c34
commit
4c780c184e
@ -46,7 +46,7 @@ postfix_{{ mapping }}:
|
|||||||
- source: salt://postfix/files/mapping.j2
|
- source: salt://postfix/files/mapping.j2
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
{%- if mapping == 'smtp_sasl_password_maps' %}
|
{%- if mapping.endswith('_sasl_password_maps') %}
|
||||||
- mode: 600
|
- mode: 600
|
||||||
{%- else %}
|
{%- else %}
|
||||||
- mode: 644
|
- mode: 644
|
||||||
|
Loading…
Reference in New Issue
Block a user