bundlewrap/bundles/telegraf/items.py
mwiegand 4b6afb503d wip
2021-06-29 22:08:29 +02:00

14 lines
292 B
Python

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