paulbsd-salt/states/syncthing/service.sls

17 lines
430 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "syncthing/map.jinja" import syncthing with context %}
syncthing-service-file:
file.managed:
- name: /etc/systemd/system/syncthing@.service
2023-03-10 00:08:03 +01:00
- source: salt://syncthing/templates/syncthing.service.j2
2020-07-10 00:58:55 +02:00
- user: root
- group: root
- template: jinja
- watch_in:
- service: syncthing-service
syncthing-service:
service.running:
- name: syncthing@{{ syncthing.user }}
2023-03-10 00:08:03 +01:00
- enable: true