]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/recipes/default.rb
Cleanup any netplan config created by the Ubuntu installer
[chef.git] / cookbooks / networking / recipes / default.rb
index c76d47e3e120bf91b4478b5f7e8d909dfeddf012..275f732d1d492bfca1d836fa69d5289dd77bf7de 100644 (file)
@@ -166,6 +166,10 @@ netplan["network"]["vlans"].each_value do |vlan|
   end
 end
 
+file "/etc/netplan/00-installer-config.yaml" do
+  action :delete
+end
+
 file "/etc/netplan/01-netcfg.yaml" do
   action :delete
 end
@@ -321,7 +325,7 @@ template "/etc/hosts" do
   owner "root"
   group "root"
   mode "644"
-  not_if { ENV["TEST_KITCHEN"] }
+  not_if { kitchen? }
 end
 
 service "systemd-resolved" do