paulbsd-salt/states/transmission/config.sls

42 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "transmission/map.jinja" import transmission with context %}
transmission-dl-dir:
file.directory:
- name: {{ transmission['config']['download-dir'] }}
2020-09-12 17:41:35 +02:00
- makedirs: true
2024-03-10 18:39:01 +01:00
- user: {{ transmission.user }}
- group: {{ transmission.group }}
2020-08-08 20:30:11 +02:00
- mode: 755
- recurse:
- user
- group
- mode
2020-07-10 00:58:55 +02:00
transmission-settings-directory:
file.directory:
- name: /etc/transmission-daemon
- user: root
- group: debian-transmission
- mode: 770
transmission-settings-master:
file.managed:
- name: /etc/transmission-daemon/settings.json.master
2023-03-10 00:05:27 +01:00
- source: salt://transmission/templates/settings.json.j2
2024-03-10 18:39:01 +01:00
- user: {{ transmission.user }}
- group: {{ transmission.group }}
2020-07-10 00:58:55 +02:00
- mode: 0660
- template: jinja
- watch_in:
- service: transmission-service
transmission-settings:
file.managed:
- name: /etc/transmission-daemon/settings.json
2023-03-11 10:10:05 +01:00
- source: salt://transmission/templates/settings.json.j2
2024-03-10 18:39:01 +01:00
- user: {{ transmission.user }}
- group: {{ transmission.group }}
2020-07-10 00:58:55 +02:00
- mode: 0660
2020-08-08 20:30:11 +02:00
- template: jinja