30 lines
838 B
Python
30 lines
838 B
Python
assert node.has_bundle('infobeamer-cms') # uses same venv
|
|
|
|
files['/opt/infobeamer-monitor/config.toml'] = {
|
|
'content': repo.libs.faults.dict_as_toml(node.metadata.get('infobeamer-monitor')),
|
|
'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',
|
|
},
|
|
}
|