bundles/powerdnsadmin: use tagged release
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-01-29 18:11:17 +01:00
parent f56852c27d
commit 161aec9314
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 23 additions and 1 deletions

View file

@ -8,7 +8,7 @@ directories = {
git_deploy = { git_deploy = {
'/opt/powerdnsadmin/src': { '/opt/powerdnsadmin/src': {
'repo': 'https://github.com/ngoduykhanh/PowerDNS-Admin.git', 'repo': 'https://github.com/ngoduykhanh/PowerDNS-Admin.git',
'rev': 'master', 'rev': node.metadata['powerdnsadmin']['version'],
'triggers': { 'triggers': {
'action:powerdnsadmin_install_deps', 'action:powerdnsadmin_install_deps',
'action:powerdnsadmin_upgrade_database', 'action:powerdnsadmin_upgrade_database',

View file

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

View file

@ -40,6 +40,9 @@ nodes['gce.bind01'] = {
'secondary_nameservers': 'dns', 'secondary_nameservers': 'dns',
'my_hostname': 'ns-1.kunbox.net', 'my_hostname': 'ns-1.kunbox.net',
}, },
'powerdnsadmin': {
'version': 'v0.2.3',
},
'vm': { 'vm': {
'cpu': 1, 'cpu': 1,
'ram': 1, 'ram': 1,