bundlewrap/bundles/telegraf/items.py
mwiegand 7eff2aa76e wip
2021-07-04 22:55:43 +02:00

14 lines
308 B
Python

from tomlkit import dumps
files['/etc/telegraf/telegraf.conf'] = {
'content': dumps(node.metadata.get('telegraf/config'), sort_keys=True),
'triggers': [
'svc_systemd:telegraf:restart',
],
}
svc_systemd['telegraf'] = {
'needs': [
'file:/etc/telegraf/telegraf.conf',
],
}