--- {%- from "vector/map.jinja" import vector with context %} vector-default: file.managed: - name: /etc/default/vector - source: salt://vector/templates/vector.default.j2 - user: vector - group: vector - mode: 600 - template: jinja vector-config-dir: file.directory: - name: /etc/vector - user: vector - group: vector - mode: 700 - watch_in: - service: vector-service vector-config-file: file.managed: - name: /etc/vector/vector.yaml - source: salt://vector/templates/vector.yaml.j2 - user: vector - group: vector - mode: 600 - template: jinja - watch_in: - service: vector-service