svc_systemd:systemd-networkd add .service to name
This commit is contained in:
parent
befdf5ad6e
commit
9733a55942
4 changed files with 6 additions and 5 deletions
|
@ -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',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,5 +19,6 @@ directories = {
|
||||||
}
|
}
|
||||||
|
|
||||||
svc_systemd = {
|
svc_systemd = {
|
||||||
'systemd-networkd': {},
|
'systemd-networkd.service': {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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']:
|
||||||
|
|
|
@ -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',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue