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:
Gilles Dartiguelongue 2016-04-08 17:54:09 +02:00
parent 62ab827c34
commit 4c780c184e

View File

@ -46,7 +46,7 @@ postfix_{{ mapping }}:
- source: salt://postfix/files/mapping.j2
- user: root
- group: root
{%- if mapping == 'smtp_sasl_password_maps' %}
{%- if mapping.endswith('_sasl_password_maps') %}
- mode: 600
{%- else %}
- mode: 644