bundles/telegraf: ensure telegraf is running, restart on config changes
This commit is contained in:
parent
f58e66f701
commit
2432075f9a
1 changed files with 12 additions and 0 deletions
|
@ -69,5 +69,17 @@ files = {
|
|||
'context': {
|
||||
'config': telegraf_config,
|
||||
},
|
||||
'triggers': {
|
||||
'svc_systemd:telegraf:restart',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
svc_systemd = {
|
||||
'telegraf': {
|
||||
'needs': {
|
||||
'file:/etc/telegraf/telegraf.conf',
|
||||
'pkg_apt:telegraf',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue