From 3c044aca2f7db9a6423fe496c677fe954463d1ef Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 10 Mar 2024 18:42:11 +0100 Subject: [PATCH] updated transmission state --- states/transmission/config.sls | 4 ++-- states/transmission/defaults.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/states/transmission/config.sls b/states/transmission/config.sls index 4635d85..d7a6fa7 100644 --- a/states/transmission/config.sls +++ b/states/transmission/config.sls @@ -22,7 +22,7 @@ transmission-settings-directory: transmission-settings-master: file.managed: - - name: /etc/transmission-daemon/settings.json.master + - name: {{ transmission.config_dir }}/settings.json.master - source: salt://transmission/templates/settings.json.j2 - user: {{ transmission.user }} - group: {{ transmission.group }} @@ -33,7 +33,7 @@ transmission-settings-master: transmission-settings: file.managed: - - name: /etc/transmission-daemon/settings.json + - name: {{ transmission.config_dir }}/settings.json - source: salt://transmission/templates/settings.json.j2 - user: {{ transmission.user }} - group: {{ transmission.group }} diff --git a/states/transmission/defaults.yaml b/states/transmission/defaults.yaml index 182f73d..c32feee 100644 --- a/states/transmission/defaults.yaml +++ b/states/transmission/defaults.yaml @@ -1,6 +1,7 @@ --- transmission: url: https://torrent.example.com + config_dir: /etc/transmission-daemon user: debian-transmission group: debian-transmission pkgs: