2023-12-26 13:50:24 +00:00
|
|
|
assert node.has_bundle('infobeamer-cms') # uses same venv
|
|
|
|
|
|
|
|
files['/opt/infobeamer-monitor/config.toml'] = {
|
2024-03-23 09:34:41 +00:00
|
|
|
'content': repo.libs.faults.dict_as_toml(node.metadata.get('infobeamer-monitor')),
|
2023-12-26 13:50:24 +00:00
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:infobeamer-monitor:restart',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
files['/opt/infobeamer-monitor/monitor.py'] = {
|
|
|
|
'mode': '0755',
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:infobeamer-monitor:restart',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
files['/usr/local/lib/systemd/system/infobeamer-monitor.service'] = {
|
|
|
|
'triggers': {
|
|
|
|
'action:systemd-reload',
|
|
|
|
'svc_systemd:infobeamer-monitor:restart',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
svc_systemd['infobeamer-monitor'] = {
|
|
|
|
'needs': {
|
|
|
|
'file:/opt/infobeamer-monitor/config.toml',
|
|
|
|
'file:/opt/infobeamer-monitor/monitor.py',
|
|
|
|
'file:/usr/local/lib/systemd/system/infobeamer-monitor.service',
|
|
|
|
},
|
|
|
|
}
|