bundles/postfixadmin: move vhost generation to reactor

This commit is contained in:
Franzi 2023-09-01 05:54:23 +02:00
parent b01dcb0ff9
commit a838f6c5bd
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 21 additions and 6 deletions

View file

@ -60,3 +60,23 @@ def icinga_check_for_new_release(metadata):
},
},
}
@metadata_reactor.provides(
'nginx/vhosts/postfixadmin',
)
def nginx(metadata):
if not node.has_bundle('nginx'):
raise DoNotRunAgain
return {
'nginx': {
'vhosts': {
'postfixadmin': {
'domain': metadata.get('postfixadmin/domain'),
'webroot': '/opt/postfixadmin/public/',
'php': True,
},
},
},
}

View file

@ -37,12 +37,6 @@ nodes['htz-cloud.pirmasens'] = {
},
'nginx': {
'vhosts': {
'mail.kunsmann.info': {
'webroot': '/opt/postfixadmin/public/',
'php': True,
'website_check_path': '/login.php',
'website_check_string': 'login',
},
'salonkatrin.de': {
'website_check_path': '/',
'website_check_string': 'Salon Katrin',
@ -82,6 +76,7 @@ nodes['htz-cloud.pirmasens'] = {
'message_size_limit_mb': 50,
},
'postfixadmin': {
'domain': 'mail.kunsmann.info',
'version': '3.3.13',
'setup_password': vault.decrypt('encrypt$gAAAAABgnNGpAqUs--qBXII9ZPcHtxaELy9e2Dx9O44n4l0O4nMHPoIyaPW5HkvpQ2zWTlh5OfjjOgunRtE_voJuY0Kdtji37ixAnuL9ErOJ0LDY5QfMkNPUgPs5alwz1baqYq6rqJ7NDmB0gHraY46v5eG79R2EyQ=='),
},