svc_systemd:systemd-networkd add .service to name

This commit is contained in:
CroneKorkN 2025-06-22 09:53:22 +02:00
parent befdf5ad6e
commit 9733a55942
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
4 changed files with 6 additions and 5 deletions

View file

@ -15,7 +15,7 @@ svc_systemd = {
'needs': [ 'needs': [
'pkg_apt:kea-dhcp4-server', 'pkg_apt:kea-dhcp4-server',
'file:/etc/kea/kea-dhcp4.conf', 'file:/etc/kea/kea-dhcp4.conf',
'svc_systemd:systemd-networkd:restart', 'svc_systemd:systemd-networkd.service:restart',
], ],
}, },
} }

View file

@ -19,5 +19,6 @@ directories = {
} }
svc_systemd = { svc_systemd = {
'systemd-networkd': {}, 'systemd-networkd.service': {},
} }

View file

@ -24,10 +24,10 @@ for name, unit in node.metadata.get('systemd/units').items():
path = f'/etc/systemd/network/{name}' path = f'/etc/systemd/network/{name}'
dependencies = { dependencies = {
'needed_by': [ 'needed_by': [
'svc_systemd:systemd-networkd', 'svc_systemd:systemd-networkd.service',
], ],
'triggers': [ 'triggers': [
'svc_systemd:systemd-networkd:restart', 'svc_systemd:systemd-networkd.service:restart',
], ],
} }
elif extension in ['timer', 'service', 'mount', 'swap', 'target']: elif extension in ['timer', 'service', 'mount', 'swap', 'target']:

View file

@ -12,7 +12,7 @@ defaults = {
'wireguard': { 'wireguard': {
'backports': node.os_version < (11,), 'backports': node.os_version < (11,),
'triggers': [ 'triggers': [
'svc_systemd:systemd-networkd:restart', 'svc_systemd:systemd-networkd.service:restart',
], ],
}, },
}, },