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
|
2020-08-08 20:30:11 +02:00
|
|
|
- user: debian-transmission
|
|
|
|
- group: debian-transmission
|
|
|
|
- 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
|
|
|
|
- source: salt://transmission/settings.json.j2
|
|
|
|
- user: root
|
|
|
|
- group: debian-transmission
|
|
|
|
- mode: 0660
|
|
|
|
- template: jinja
|
|
|
|
- watch_in:
|
|
|
|
- service: transmission-service
|
|
|
|
|
|
|
|
transmission-settings:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/transmission-daemon/settings.json
|
|
|
|
- source: salt://transmission/settings.json.j2
|
|
|
|
- user: root
|
|
|
|
- group: debian-transmission
|
|
|
|
- mode: 0660
|
2020-08-08 20:30:11 +02:00
|
|
|
- template: jinja
|