bundles/postfixadmin: use tagged release
This commit is contained in:
parent
fa462fbd0f
commit
f56852c27d
4 changed files with 22 additions and 1 deletions
|
@ -19,7 +19,7 @@ directories = {
|
||||||
git_deploy = {
|
git_deploy = {
|
||||||
'/opt/postfixadmin': {
|
'/opt/postfixadmin': {
|
||||||
'repo': 'https://github.com/postfixadmin/postfixadmin.git',
|
'repo': 'https://github.com/postfixadmin/postfixadmin.git',
|
||||||
'rev': 'master',
|
'rev': 'postfixadmin-{}'.format(node.metadata['postfixadmin']['version']),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -60,6 +60,7 @@ nodes['htz-cloud.pirmasens'] = {
|
||||||
'message_size_limit_mb': 50,
|
'message_size_limit_mb': 50,
|
||||||
},
|
},
|
||||||
'postfixadmin': {
|
'postfixadmin': {
|
||||||
|
'version': '3.3.5',
|
||||||
'setup_password': vault.decrypt('encrypt$gAAAAABfpwn8NKxTztI39GzhGw66NNsWa72Wq7Sa_LoIG_L0ewCVPzhmw93xhWo3jfT8hCn9sqJgbArmPHtLMcLkSHdBPbQe0bLZMSib-mA9sEQD0wgKMyuRCPHIIMKSAoMaJaYnHSTO-mz1q7_tKzd6LkHF_AGsboS1vpQvg-CDth6e0msTwe8='),
|
'setup_password': vault.decrypt('encrypt$gAAAAABfpwn8NKxTztI39GzhGw66NNsWa72Wq7Sa_LoIG_L0ewCVPzhmw93xhWo3jfT8hCn9sqJgbArmPHtLMcLkSHdBPbQe0bLZMSib-mA9sEQD0wgKMyuRCPHIIMKSAoMaJaYnHSTO-mz1q7_tKzd6LkHF_AGsboS1vpQvg-CDth6e0msTwe8='),
|
||||||
},
|
},
|
||||||
'rspamd': {
|
'rspamd': {
|
||||||
|
|
|
@ -281,6 +281,7 @@ nodes['htz.ex42-1048908'] = {
|
||||||
'message_size_limit_mb': 50,
|
'message_size_limit_mb': 50,
|
||||||
},
|
},
|
||||||
'postfixadmin': {
|
'postfixadmin': {
|
||||||
|
'version': '3.3.5',
|
||||||
'setup_password': vault.decrypt('encrypt$gAAAAABfpwn8NKxTztI39GzhGw66NNsWa72Wq7Sa_LoIG_L0ewCVPzhmw93xhWo3jfT8hCn9sqJgbArmPHtLMcLkSHdBPbQe0bLZMSib-mA9sEQD0wgKMyuRCPHIIMKSAoMaJaYnHSTO-mz1q7_tKzd6LkHF_AGsboS1vpQvg-CDth6e0msTwe8='),
|
'setup_password': vault.decrypt('encrypt$gAAAAABfpwn8NKxTztI39GzhGw66NNsWa72Wq7Sa_LoIG_L0ewCVPzhmw93xhWo3jfT8hCn9sqJgbArmPHtLMcLkSHdBPbQe0bLZMSib-mA9sEQD0wgKMyuRCPHIIMKSAoMaJaYnHSTO-mz1q7_tKzd6LkHF_AGsboS1vpQvg-CDth6e0msTwe8='),
|
||||||
},
|
},
|
||||||
'radicale': {
|
'radicale': {
|
||||||
|
|
Loading…
Reference in a new issue