From a0f8e43f51e238726ce514268815ec51c3fdc01b Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 8 Aug 2020 20:30:11 +0200 Subject: [PATCH] updated transmission state --- states/transmission/config.sls | 9 ++++++++- states/transmission/settings.json.j2 | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/states/transmission/config.sls b/states/transmission/config.sls index d5a2953..b6d16ac 100644 --- a/states/transmission/config.sls +++ b/states/transmission/config.sls @@ -5,6 +5,13 @@ transmission-dl-dir: file.directory: - name: {{ transmission['config']['download-dir'] }} - makedirs: True + - user: debian-transmission + - group: debian-transmission + - mode: 755 + - recurse: + - user + - group + - mode transmission-settings-directory: file.directory: @@ -31,4 +38,4 @@ transmission-settings: - user: root - group: debian-transmission - mode: 0660 - - template: jinja \ No newline at end of file + - template: jinja diff --git a/states/transmission/settings.json.j2 b/states/transmission/settings.json.j2 index 0c9b629..d4405d5 100644 --- a/states/transmission/settings.json.j2 +++ b/states/transmission/settings.json.j2 @@ -1,2 +1,2 @@ {%- from "transmission/map.jinja" import transmission with context -%} -{{ transmission.config|json }} \ No newline at end of file +{{ transmission.config|tojson }}