From ac873d2ba4625c7831424ba9fad37edc85463ab9 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Fri, 10 Mar 2023 00:08:03 +0100 Subject: [PATCH] updated syncthing state --- states/syncthing/service.sls | 4 ++-- states/syncthing/{ => templates}/syncthing.service.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename states/syncthing/{ => templates}/syncthing.service.j2 (94%) diff --git a/states/syncthing/service.sls b/states/syncthing/service.sls index 2abbf00..8348d51 100644 --- a/states/syncthing/service.sls +++ b/states/syncthing/service.sls @@ -3,7 +3,7 @@ syncthing-service-file: file.managed: - name: /etc/systemd/system/syncthing@.service - - source: salt://syncthing/syncthing.service.j2 + - source: salt://syncthing/templates/syncthing.service.j2 - user: root - group: root - template: jinja @@ -13,4 +13,4 @@ syncthing-service-file: syncthing-service: service.running: - name: syncthing@{{ syncthing.user }} - - enable: true \ No newline at end of file + - enable: true diff --git a/states/syncthing/syncthing.service.j2 b/states/syncthing/templates/syncthing.service.j2 similarity index 94% rename from states/syncthing/syncthing.service.j2 rename to states/syncthing/templates/syncthing.service.j2 index f4f37b6..bec8d73 100644 --- a/states/syncthing/syncthing.service.j2 +++ b/states/syncthing/templates/syncthing.service.j2 @@ -13,4 +13,4 @@ SuccessExitStatus=3 4 RestartForceExitStatus=3 4 [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target