dismantle all arch infrastructure

This commit is contained in:
Franzi 2025-01-06 20:12:06 +01:00
parent 5df7bdf2da
commit 0b09537ba4
Signed by: kunsi
GPG key ID: 12E3D2136B818350
59 changed files with 21 additions and 1524 deletions

View file

@ -21,13 +21,12 @@ for identifier in node.metadata.get('postfix/mynetworks', set()):
netmask = '128'
mynetworks.add(f'[{ip6}]/{netmask}')
my_package = 'pkg_pacman:postfix' if node.os == 'arch' else 'pkg_apt:postfix'
files = {
'/etc/mailname': {
'content': node.metadata.get('postfix/myhostname'),
'before': {
my_package,
'pkg_apt:postfix',
},
'triggers': {
'svc_systemd:postfix:restart',
@ -82,7 +81,7 @@ actions = {
'command': 'newaliases',
'triggered': True,
'needs': {
my_package,
'pkg_apt:postfix',
},
'before': {
'svc_systemd:postfix',
@ -92,7 +91,7 @@ actions = {
'command': 'postmap hash:/etc/postfix/blocked_recipients',
'triggered': True,
'needs': {
my_package,
'pkg_apt:postfix',
},
'before': {
'svc_systemd:postfix',
@ -105,17 +104,7 @@ svc_systemd = {
'needs': {
'file:/etc/postfix/master.cf',
'file:/etc/postfix/main.cf',
my_package,
'pkg_apt:postfix',
},
},
}
if node.os == 'arch':
files['/etc/systemd/system/postfix.service.d/bundlewrap.conf'] = {
'source': 'arch-override.conf',
'content_type': 'mako',
'triggers': {
'action:systemd-reload',
'svc_systemd:postfix:restart',
},
}