2021-04-03 07:36:47 +00:00
|
|
|
files = {
|
|
|
|
'/etc/mosquitto/mosquitto.conf': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:mosquitto:restart',
|
|
|
|
},
|
|
|
|
},
|
2021-05-15 06:52:37 +00:00
|
|
|
'/usr/local/bin/tasmota-telegraf-plugin': {
|
|
|
|
'mode': '0755',
|
2021-06-06 13:17:34 +00:00
|
|
|
'needs': {
|
|
|
|
'pkg_apt:python3-paho-mqtt',
|
|
|
|
},
|
2021-05-15 06:52:37 +00:00
|
|
|
},
|
2021-04-03 07:36:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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'):
|
|
|
|
files['/usr/local/bin/tasmota-telegraf-plugin']['triggers'] = {
|
|
|
|
'svc_systemd:telegraf:restart',
|
|
|
|
}
|