bundles/powerdnsadmin: use tagged release
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
f56852c27d
commit
161aec9314
3 changed files with 23 additions and 1 deletions
|
@ -8,7 +8,7 @@ directories = {
|
|||
git_deploy = {
|
||||
'/opt/powerdnsadmin/src': {
|
||||
'repo': 'https://github.com/ngoduykhanh/PowerDNS-Admin.git',
|
||||
'rev': 'master',
|
||||
'rev': node.metadata['powerdnsadmin']['version'],
|
||||
'triggers': {
|
||||
'action:powerdnsadmin_install_deps',
|
||||
'action:powerdnsadmin_upgrade_database',
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -40,6 +40,9 @@ nodes['gce.bind01'] = {
|
|||
'secondary_nameservers': 'dns',
|
||||
'my_hostname': 'ns-1.kunbox.net',
|
||||
},
|
||||
'powerdnsadmin': {
|
||||
'version': 'v0.2.3',
|
||||
},
|
||||
'vm': {
|
||||
'cpu': 1,
|
||||
'ram': 1,
|
||||
|
|
Loading…
Reference in a new issue