bundles/telegraf: ensure telegraf is running, restart on config changes

This commit is contained in:
Franzi 2021-04-24 10:05:52 +02:00
parent f58e66f701
commit 2432075f9a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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',
},
},
}