bundles/postfix: ensure /etc/mailname exists before installing postfix

This commit is contained in:
Franzi 2023-09-20 17:38:17 +02:00
parent c6b01aa219
commit dda3c4162c
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -26,6 +26,9 @@ 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']),
'before': {
my_package,
},
'triggers': {
'svc_systemd:postfix:restart',
},