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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue