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

@ -25,7 +25,7 @@ my_package = 'pkg_pacman:postfix' if node.os == 'arch' else 'pkg_apt:postfix'
files = {
'/etc/mailname': {
'content': node.metadata.get('postfix/myhostname', node.metadata['hostname']),
'content': node.metadata.get('postfix/myhostname'),
'before': {
my_package,
},