--- {%- from "tor/map.jinja" import tor with context %} tor-service: {%- if tor.enabled %} service.running: {%- else %} service.dead: {%- endif %} - name: tor - enable: {{ tor.enabled }} - require: - pkg: tor-pkg