homeassistant: rework update check

This commit is contained in:
Sophie Schiller 2022-12-24 17:51:42 +01:00
parent df303b3487
commit 52983a51a9
3 changed files with 64 additions and 18 deletions

View file

@ -20,6 +20,14 @@ files = {
'svc_systemd:homeassistant:restart',
},
},
'/usr/local/share/icinga/plugins/check_homeassistant_update': {
'content_type': 'mako',
'context': {
'bearer': repo.vault.decrypt(node.metadata.get('homeassistant/api_secret')),
'domain': node.metadata.get('homeassistant/domain'),
},
'mode': '0755',
},
}
actions = {