2021-04-03 07:36:47 +00:00
|
|
|
files = {
|
|
|
|
'/etc/mosquitto/mosquitto.conf': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:mosquitto:restart',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
svc_systemd = {
|
|
|
|
'mosquitto': {
|
|
|
|
'needs': {
|
|
|
|
'file:/etc/mosquitto/mosquitto.conf',
|
|
|
|
'pkg_apt:mosquitto',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2021-06-06 13:17:34 +00:00
|
|
|
|
|
|
|
if node.has_bundle('telegraf'):
|
2024-07-30 15:54:24 +00:00
|
|
|
files['/usr/local/bin/tasmota-telegraf-plugin'] = {
|
|
|
|
'mode': '0755',
|
|
|
|
'needs': {
|
|
|
|
'pkg_apt:python3-paho-mqtt',
|
|
|
|
},
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:telegraf:restart',
|
|
|
|
},
|
2021-06-06 13:17:34 +00:00
|
|
|
}
|