updated transmission state
This commit is contained in:
parent
8d4605ab7e
commit
835cffb430
@ -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
|
||||||
|
@ -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:
|
transmission-service:
|
||||||
service.running:
|
service.running:
|
||||||
- name: transmission-daemon
|
- name: transmission-daemon
|
||||||
|
Loading…
Reference in New Issue
Block a user