Franziska Kunsmann
fdcec012f3
All checks were successful
bundlewrap/pipeline/head This commit looks good
60 lines
1.3 KiB
Python
60 lines
1.3 KiB
Python
if node.has_bundle('postfixadmin'):
|
|
assert node.has_bundle('letsencrypt')
|
|
|
|
files = {
|
|
'/etc/mailname': {
|
|
'content': node.metadata.get('postfix/myhostname', node.metadata['hostname']),
|
|
'triggers': {
|
|
'svc_systemd:postfix:restart',
|
|
},
|
|
},
|
|
'/etc/aliases': {
|
|
'content_type': 'mako',
|
|
'triggers': {
|
|
'action:postfix_newaliases',
|
|
},
|
|
},
|
|
'/etc/postfix/master.cf': {
|
|
'content_type': 'mako',
|
|
'triggers': {
|
|
'svc_systemd:postfix:restart',
|
|
},
|
|
},
|
|
'/etc/postfix/main.cf': {
|
|
'content_type': 'mako',
|
|
'triggers': {
|
|
'svc_systemd:postfix:restart',
|
|
},
|
|
},
|
|
'/etc/postfix/submission_header_cleanup': {
|
|
'triggers': {
|
|
'svc_systemd:postfix:restart',
|
|
},
|
|
},
|
|
'/usr/local/share/icinga/plugins/check_postfix_queue': {
|
|
'mode': '0755',
|
|
},
|
|
'/usr/local/share/icinga/plugins/check_spam_blocklist': {
|
|
'mode': '0755',
|
|
},
|
|
}
|
|
|
|
actions = {
|
|
'postfix_newaliases': {
|
|
'command': 'newaliases',
|
|
'triggered': True,
|
|
'needs': {
|
|
'pkg_apt:postfix',
|
|
},
|
|
},
|
|
}
|
|
|
|
svc_systemd = {
|
|
'postfix': {
|
|
'needs': {
|
|
'file:/etc/postfix/master.cf',
|
|
'file:/etc/postfix/main.cf',
|
|
'pkg_apt:',
|
|
},
|
|
},
|
|
}
|