bundles/postfix: provide myhostname from reactor
This commit is contained in:
parent
6647e71484
commit
84867ff1e6
4 changed files with 18 additions and 7 deletions
|
@ -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'),
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue