paulbsd-salt/states/dkron/service.sls
2022-04-10 12:40:10 +02:00

16 lines
392 B
Plaintext

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