Fix sasl_passwd handling - can't just dump json to sasl_passwd

This commit is contained in:
Scott Reid 2015-09-02 12:07:37 -07:00
parent 9326095571
commit d520b6f2c5

View file

@ -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 %}