bundles/systemd-networkd: also deploy resolv.conf
This commit is contained in:
parent
394424951f
commit
6f87a1d240
2 changed files with 12 additions and 0 deletions
3
bundles/systemd-networkd/files/resolv.conf
Normal file
3
bundles/systemd-networkd/files/resolv.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
% for nameserver in sorted(node.metadata.get('nameservers', {'9.9.9.10', '2620:fe::10'})):
|
||||
${nameserver}
|
||||
% endfor
|
|
@ -1,9 +1,18 @@
|
|||
assert node.has_bundle('systemd')
|
||||
|
||||
pkg_apt = {
|
||||
'resolvconf': {
|
||||
'installed': False,
|
||||
},
|
||||
}
|
||||
|
||||
files = {
|
||||
'/etc/network/interfaces': {
|
||||
'delete': True,
|
||||
},
|
||||
'/etc/resolv.conf': {
|
||||
'content_type': 'mako',
|
||||
},
|
||||
}
|
||||
|
||||
directories = {
|
||||
|
|
Loading…
Reference in a new issue