]> git.openstreetmap.org Git - chef.git/commitdiff
Restrict test image to DHCP provided resolvers
authorTom Hughes <tom@compton.nu>
Tue, 21 Jan 2020 18:46:37 +0000 (18:46 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 21 Jan 2020 18:46:57 +0000 (18:46 +0000)
.kitchen.provision.rb

index 8398bd5497ec8f9ccbdff50b1299d6806b85f362..d2a08bf18f58c80d58bf3404216819137134e8df 100644 (file)
@@ -1,5 +1,7 @@
 Vagrant.configure(2) do |config|
   config.vm.provision "shell", :inline => <<-SHELL
+    sed -i -e '/nameservers:/d' -e '/addresses:/d' /etc/netplan/01-netcfg.yaml
+    netplan apply
     apt-get update -y
   SHELL
 end