--- {%- from "salt_minion/map.jinja" import salt_minion with context %} salt-minion-install: pip.installed: - name: salt=={{ salt_minion.version }} {% for dep in salt_minion.deps %} salt-minion-install-{{ dep }}: pip.installed: - name: {{ dep }} {% endfor %}