paulbsd-salt/states/transmission/config.sls
2020-07-10 00:58:55 +02:00

34 lines
876 B
Plaintext

---
{%- from "transmission/map.jinja" import transmission with context %}
transmission-dl-dir:
file.directory:
- name: {{ transmission['config']['download-dir'] }}
- makedirs: True
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
- template: jinja