From d520b6f2c5c332d5c6ff1aebfec766b3aed82aca Mon Sep 17 00:00:00 2001 From: Scott Reid Date: Wed, 2 Sep 2015 12:07:37 -0700 Subject: [PATCH] Fix sasl_passwd handling - can't just dump json to sasl_passwd --- postfix/sasl_passwd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/postfix/sasl_passwd b/postfix/sasl_passwd index b567fe2..9aa8cae 100644 --- a/postfix/sasl_passwd +++ b/postfix/sasl_passwd @@ -1,2 +1,7 @@ # Managed by config management -{{pillar['postfix']['sasl_passwd']}} +{% set canonical = salt['pillar.get']('postfix:sasl_passwd',{}) -%} +{% if canonical is iterable -%} + {% for key,value in salt['pillar.get']('postfix:sasl_passwd',{}).iteritems() -%} + {{ key }} {{ value }} + {% endfor %} +{% endif %}