From 089fe786a4e65650a0288aba0c16634daed0aa0c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 7 Mar 2025 10:39:55 +0000 Subject: [PATCH] Make bond configuration more robust --- cookbooks/networking/recipes/default.rb | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.39.5