bundles/postfixadmin: use tagged release

This commit is contained in:
Franzi 2021-01-29 18:07:57 +01:00
parent fa462fbd0f
commit f56852c27d
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 22 additions and 1 deletions

View file

@ -19,7 +19,7 @@ directories = {
git_deploy = {
'/opt/postfixadmin': {
'repo': 'https://github.com/postfixadmin/postfixadmin.git',
'rev': 'master',
'rev': 'postfixadmin-{}'.format(node.metadata['postfixadmin']['version']),
},
}

View file

@ -20,3 +20,22 @@ defaults = {
},
},
}
@metadata_reactor.provides(
'icinga2_api/postfixadmin/services',
)
def icinga_check_for_new_release(metadata):
return {
'icinga2_api': {
'postfixadmin': {
'services': {
'POSTFIXADMIN UPDATE': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_github_for_new_release postfixadmin/postfixadmin postfixadmin-{}'.format(metadata.get('postfixadmin/version')),
'vars.notification.mail': True,
'check_interval': '60m',
},
},
},
},
}

View file

@ -60,6 +60,7 @@ nodes['htz-cloud.pirmasens'] = {
'message_size_limit_mb': 50,
},
'postfixadmin': {
'version': '3.3.5',
'setup_password': vault.decrypt('encrypt$gAAAAABfpwn8NKxTztI39GzhGw66NNsWa72Wq7Sa_LoIG_L0ewCVPzhmw93xhWo3jfT8hCn9sqJgbArmPHtLMcLkSHdBPbQe0bLZMSib-mA9sEQD0wgKMyuRCPHIIMKSAoMaJaYnHSTO-mz1q7_tKzd6LkHF_AGsboS1vpQvg-CDth6e0msTwe8='),
},
'rspamd': {

View file

@ -281,6 +281,7 @@ nodes['htz.ex42-1048908'] = {
'message_size_limit_mb': 50,
},
'postfixadmin': {
'version': '3.3.5',
'setup_password': vault.decrypt('encrypt$gAAAAABfpwn8NKxTztI39GzhGw66NNsWa72Wq7Sa_LoIG_L0ewCVPzhmw93xhWo3jfT8hCn9sqJgbArmPHtLMcLkSHdBPbQe0bLZMSib-mA9sEQD0wgKMyuRCPHIIMKSAoMaJaYnHSTO-mz1q7_tKzd6LkHF_AGsboS1vpQvg-CDth6e0msTwe8='),
},
'radicale': {