updated transmission state
This commit is contained in:
parent
8d4605ab7e
commit
835cffb430
@ -1,5 +1,6 @@
|
||||
---
|
||||
transmission:
|
||||
url: https://torrent.example.com
|
||||
config:
|
||||
alt-speed-down: 50
|
||||
alt-speed-enabled: false
|
||||
|
@ -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:
|
||||
service.running:
|
||||
- name: transmission-daemon
|
||||
- enable: true
|
||||
- enable: true
|
||||
|
Loading…
Reference in New Issue
Block a user