{% from "salt/map.jinja" import master with context %} peer: {%- for peer_name,peer_rules in master.peer.items() %} {{ peer_name }}: {{ peer_rules }} {%- endfor %}