bundles/systemd-networkd: also deploy resolv.conf

This commit is contained in:
Franzi 2020-11-09 16:38:59 +01:00
parent 394424951f
commit 6f87a1d240
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,3 @@
% for nameserver in sorted(node.metadata.get('nameservers', {'9.9.9.10', '2620:fe::10'})):
${nameserver}
% endfor

View file

@ -1,9 +1,18 @@
assert node.has_bundle('systemd') assert node.has_bundle('systemd')
pkg_apt = {
'resolvconf': {
'installed': False,
},
}
files = { files = {
'/etc/network/interfaces': { '/etc/network/interfaces': {
'delete': True, 'delete': True,
}, },
'/etc/resolv.conf': {
'content_type': 'mako',
},
} }
directories = { directories = {