updated transmission state

This commit is contained in:
Paul 2023-01-16 12:01:24 +01:00
parent 8d4605ab7e
commit 835cffb430
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,6 @@
--- ---
transmission: transmission:
url: https://torrent.example.com
config: config:
alt-speed-down: 50 alt-speed-down: 50
alt-speed-enabled: false alt-speed-enabled: false

View File

@ -1,5 +1,13 @@
--- ---
{%- from "transmission/map.jinja" import transmission with context %}
{%- if salt['http.query'](transmission.url)['status'] == 503 %}
transmission-service-stop:
service.dead:
- name: transmission-daemon
{%- endif %}
transmission-service: transmission-service:
service.running: service.running:
- name: transmission-daemon - name: transmission-daemon
- enable: true - enable: true