bundlewrap/bundles/octoprint/metadata.py
Franziska Kunsmann 22d5ba12ee
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/octoprint: don't try to resolve faults in metadata.py
2020-11-22 09:07:28 +01:00

39 lines
903 B
Python

defaults = {
'backups': {
'paths': {
'/opt/octoprint',
},
},
'users': {
'octoprint': {
'home': '/opt/octoprint',
'sudo_commands': {
'/usr/bin/vcgencmd',
'/opt/octoprint/systemd-wrapper',
},
'groups': {
'dialout',
'gpio',
},
},
},
}
@metadata_reactor
def icinga(metadata):
if 'api_key' not in metadata.get('octoprint', {}):
return {}
return {
'icinga2_api': {
'octoprint': {
'services': {
'OCTOPRINT UPDATE': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_octoprint_update',
'retry_interval': '60m',
},
},
},
},
}