]> git.openstreetmap.org Git - chef.git/commitdiff
Cleanup any old "normal" priority networking configuration
authorTom Hughes <tom@compton.nu>
Mon, 14 Sep 2020 18:18:44 +0000 (19:18 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 14 Sep 2020 18:18:44 +0000 (19:18 +0100)
cookbooks/networking/recipes/default.rb

index 34a1a52afba33d0e3e860cf3e6eb6ddcdc975000..13fd2252bd849e9752cd51f4e36f3931411aa75e 100644 (file)
@@ -37,6 +37,8 @@ netplan = {
   }
 }
 
+node.rm_normal(:networking)
+
 node[:networking][:interfaces].each do |name, interface|
   if interface[:interface]
     if interface[:role] && (role = node[:networking][:roles][interface[:role]])