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:
url: https://torrent.example.com
config:
alt-speed-down: 50
alt-speed-enabled: false

View File

@ -1,4 +1,12 @@
---
{%- 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:
service.running:
- name: transmission-daemon