bundles/postfix: provide myhostname from reactor

This commit is contained in:
Franzi 2024-10-27 11:19:05 +01:00
parent 6647e71484
commit 84867ff1e6
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 18 additions and 7 deletions

View file

@ -87,7 +87,7 @@ def letsencrypt(metadata):
}
result['domains'] = {
metadata.get('postfix/myhostname', metadata.get('hostname')): set(),
metadata.get('postfix/myhostname'): set(),
}
return {
@ -148,3 +148,14 @@ def icinga2(metadata):
},
},
}
@metadata_reactor.provides(
'postfix/myhostname',
)
def myhostname(metadata):
return {
'postfix': {
'myhostname': metadata.get('hostname'),
},
}