From 4c780c184eb7c9d7bedde6fb7984611d7886e774 Mon Sep 17 00:00:00 2001 From: Gilles Dartiguelongue Date: Fri, 8 Apr 2016 17:54:09 +0200 Subject: [PATCH] Handle smtp/lmtp password maps file mode Do not hardcode the key name, even if there is only two at the moment --- postfix/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postfix/init.sls b/postfix/init.sls index fb0483c..3f4e717 100644 --- a/postfix/init.sls +++ b/postfix/init.sls @@ -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