/etc/systemd/system/gitea.service: file.managed: - source: 'salt://gitea/files/systemd_service.jinja' - template: jinja - user: root - group: root - mode: 644 - require: - sls: gitea.install gitea: service.running: - enable: True - watch: - file: /etc/systemd/system/gitea.service - file: {{ salt.pillar.get('gitea:path') }}/etc/app.ini - cmd: download gitea