bundles/transmission: add telegraf statistics
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
3b3bdeecab
commit
df192e543b
4 changed files with 65 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue