bundles/postfix: ensure /etc/mailname exists before installing postfix
This commit is contained in:
parent
c6b01aa219
commit
dda3c4162c
1 changed files with 3 additions and 0 deletions
|
@ -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',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue