home.router: upgrade to bookworm and switch to kea-dhcp-server

This commit is contained in:
Franzi 2023-09-10 22:02:14 +02:00
parent aaf67f1a3d
commit 9bde0d9410
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 20 additions and 14 deletions

View file

@ -5,8 +5,6 @@ kea_config = {
'interfaces': sorted(node.metadata.get('kea-dhcp-server/subnets', {}).keys()),
},
'subnet4': [],
},
'Server': {
'loggers': [{
'name': 'kea-dhcp4',
'output_options': [{
@ -39,4 +37,16 @@ for iface, config in sorted(node.metadata.get('kea-dhcp-server/subnets', {}).ite
]
})
# TODO deploy config
files['/etc/kea/kea-dhcp4.conf'] = {
'content': repo.libs.faults.dict_as_json(kea_config),
'triggers': {
'svc_systemd:kea-dhcp4-server:restart',
},
}
svc_systemd['kea-dhcp4-server'] = {
'needs': {
'file:/etc/kea/kea-dhcp4.conf',
'pkg_apt:kea-dhcp4-server',
},
}