From: Tom Hughes Date: Fri, 7 Mar 2025 10:39:55 +0000 (+0000) Subject: Make bond configuration more robust X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/089fe786a4e65650a0288aba0c16634daed0aa0c Make bond configuration more robust --- diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index f572b1e28..4ab91c053 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -103,6 +103,8 @@ node[:networking][:interfaces].each do |_, interface| notifies :run, "notify_group[networkctl-reload]" end elsif interface[:interface] =~ /^bond\d+$/ + next unless interface[:bond] + template "/etc/systemd/network/10-#{interface[:interface]}.netdev" do source "bond.netdev.erb" owner "root"