--- {%- from "postfix/map.jinja" import postfix with context %} postfix-pgsql-dir: file.directory: - name: {{ postfix.base_dir }}/pgsql - user: root - group: root postfix-main-cf: file.managed: - name: {{ postfix.base_dir }}/pgsql/main.cf - source: salt://postfix/templates/main.cf.j2 - user: root - group: root - mode: 644 - template: jinja - watch_in: - service: postfix-service postfix-main-cf: file.managed: - name: {{ postfix.base_dir }}/main.cf - source: salt://postfix/templates/main.cf.j2 - user: root - group: root - mode: 644 - template: jinja - watch_in: - service: postfix-service postfix-master-cf: file.managed: - name: {{ postfix.base_dir }}/master.cf - source: salt://postfix/templates/master.cf.j2 - user: root - group: root - mode: 644 - template: jinja - watch_in: - service: postfix-service