bundles/systemd-networkd: add "enable-resolved" flag
This commit is contained in:
parent
fbf0371371
commit
6e9fb7044a
1 changed files with 11 additions and 3 deletions
|
@ -10,11 +10,19 @@ files = {
|
|||
'/etc/network/interfaces': {
|
||||
'delete': True,
|
||||
},
|
||||
'/etc/resolv.conf': {
|
||||
'content_type': 'mako',
|
||||
},
|
||||
}
|
||||
|
||||
if node.metadata.get('systemd-networkd/enable-resolved', False):
|
||||
symlinks['/etc/resolv.conf'] = {
|
||||
'target': '/run/systemd/resolve/stub-resolv.conf',
|
||||
}
|
||||
svc_systemd['systemd-resolved'] = {}
|
||||
else:
|
||||
files['/etc/resolv.conf'] = {
|
||||
'content_type': 'mako',
|
||||
}
|
||||
|
||||
|
||||
directories = {
|
||||
'/etc/systemd/network': {
|
||||
'purge': True,
|
||||
|
|
Loading…
Reference in a new issue