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 = {
|
files = {
|
||||||
'/etc/mailname': {
|
'/etc/mailname': {
|
||||||
'content': node.metadata.get('postfix/myhostname', node.metadata['hostname']),
|
'content': node.metadata.get('postfix/myhostname', node.metadata['hostname']),
|
||||||
|
'before': {
|
||||||
|
my_package,
|
||||||
|
},
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:postfix:restart',
|
'svc_systemd:postfix:restart',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue