16 lines
382 B
Plaintext
16 lines
382 B
Plaintext
|
---
|
||
|
{%- from "dkron/map.jinja" import dkron with context %}
|
||
|
dkron-service-file:
|
||
|
file.managed:
|
||
|
- name: /etc/systemd/system/dkron@.service
|
||
|
- source: salt://dkron/dkron.service.j2
|
||
|
- user: root
|
||
|
- group: root
|
||
|
- template: jinja
|
||
|
- watch_in:
|
||
|
- service: dkron-service
|
||
|
|
||
|
dkron-service:
|
||
|
service.running:
|
||
|
- name: dkron@{{ dkron.runuser }}
|
||
|
- enable: True
|