bundles/transmission: add telegraf statistics
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2021-05-19 20:12:52 +02:00
parent 3b3bdeecab
commit df192e543b
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 65 additions and 2 deletions

View file

@ -1,5 +1,13 @@
from bundlewrap.metadata import metadata_to_json
pkg_pip = {
'transmission-rpc': {
'needed_by': {
'svc_systemd:telegraf',
},
},
}
files = {
# XXX Manage settings using bundlewrap once transmission has an
# option to disable config rewriting.
@ -14,6 +22,13 @@ files = {
'svc_systemd:transmission-daemon:restart',
},
},
'/usr/local/bin/telegraf-transmission-plugin': {
'content_type': 'mako',
'context': {
'rpc_port': node.metadata['transmission']['config']['rpc-port'],
},
'mode': '0755',
},
}
actions = {