{%- from "salt/map.jinja" import master with context %} {%- if master.user is defined %} external_auth: pam: {%- for user_name, user in master.user.iteritems() %} {{ user_name }}: {{ user.permissions|yaml }} {%- endfor %} {%- endif %} {#- vim: syntax=jinja -#}