From: Tom Hughes Date: Tue, 5 Oct 2021 17:28:33 +0000 (+0100) Subject: Mark slave interfaces in a bond as optional X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/2b0fa99a5ad90d8b66803deb9be2ba55051dbc5c Mark slave interfaces in a bond as optional 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. --- diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 4fbf463f2..8569c731c 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -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