{% from "salt/map.jinja" import master with context %} engines: {%- for engine_name, engine in master.engine.items() %} {%- set name = engine.get('engine', engine_name) %} {%- if engine.engine is defined %}{%- do engine.pop('engine') %}{% endif %} - {{ name }}: {{ engine|yaml }} {%- endfor %}