]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/recipes/default.rb
Mark slave interfaces in a bond as optional
[chef.git] / cookbooks / networking / recipes / default.rb
index 4fbf463f219f48651c9c38722e2b4eab55a9292d..8569c731c21e4122f240a50b26d3afdabe0fe8cf 100644 (file)
@@ -156,7 +156,7 @@ end
 
 netplan["network"]["bonds"].each_value do |bond|
   bond["interfaces"].each do |interface|
-    netplan["network"]["ethernets"][interface] ||= { "accept-ra" => false }
+    netplan["network"]["ethernets"][interface] ||= { "accept-ra" => false, "optional" => true }
   end
 end