bundles/{gitea,mautrix-telegram}: add update check
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2020-11-21 20:35:51 +01:00
parent 4f5e462c94
commit 325f483a26
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 31 additions and 0 deletions

View file

@ -65,3 +65,19 @@ def nginx(metadata):
},
},
}
@metadata_reactor
def icinga_check_for_new_release(metadata):
return {
'icinga2_api': {
'gitea': {
'services': {
'GITEA UPDATE': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_github_for_new_release go-gitea/gitea v{}'.format(metadata.get('gitea/version')),
'retry_interval': '60m',
},
},
},
},
}

View file

@ -42,3 +42,18 @@ defaults = {
},
}
@metadata_reactor
def icinga_check_for_new_release(metadata):
return {
'icinga2_api': {
'mautrix-telegram': {
'services': {
'MAUTRIX-TELEGRAM UPDATE': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_github_for_new_release tulir/mautrix-telegram {}'.format(metadata.get('mautrix-telegram/version')),
'retry_interval': '60m',
},
},
},
},
}