--- {%- from "pki/map.jinja" import pki with context %} pki-service-file: file.managed: - name: /etc/systemd/system/pki.service - source: salt://pki/templates/pki.service.j2 - user: root - group: root - template: jinja pki-service: service.running: - name: pki - enable: true