]> git.openstreetmap.org Git - chef.git/commitdiff
Mark slave interfaces in a bond as optional
authorTom Hughes <tom@compton.nu>
Tue, 5 Oct 2021 17:28:33 +0000 (18:28 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 5 Oct 2021 17:33:54 +0000 (18:33 +0100)
This stops systemd-wait-online treaing them as required and
waiting for them to come up when they may not be connected - the
actual bond will still be required but will be up once at least
one slave interface is.

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