--- {%- from "tor/map.jinja" import tor with context %} tor-config: file.managed: - name: /etc/tor/torrc - source: salt://tor/templates/torrc.j2 - user: root - group: root - mode: "0660" - template: jinja - watch_in: - service: tor-service - require: - pkg: tor-pkg