ns-ionos: move powerdnsadmin webinterface to new hostname

This commit is contained in:
Franzi 2023-05-16 18:07:34 +02:00
parent a4bb7f89ec
commit f8416215d5
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 34 additions and 9 deletions

View file

@ -50,3 +50,27 @@ def icinga_check_for_new_release(metadata):
},
},
}
@metadata_reactor.provides(
'nginx/vhosts/powerdnsadmin',
)
def nginx(metadata):
if not node.has_bundle('nginx'):
raise DoNotRunAgain
return {
'nginx': {
'vhosts': {
'powerdnsadmin': {
'locations': {
'/': {
'target': 'http://127.0.0.1:22100',
},
},
'website_check_path': '/login',
'website_check_string': 'PowerDNS',
},
},
},
}