--- {% from "burp/map.jinja" import burp with context %} {% if salt['grains.get']('init') == 'systemd' %} burp-task: file.managed: - name: /etc/systemd/system/burp.service - source: salt://burp/burp.service.j2 - user: root - mode: 0644 - template: jinja {% endif %}