]> git.openstreetmap.org Git - chef.git/commitdiff
Make bond configuration more robust
authorTom Hughes <tom@compton.nu>
Fri, 7 Mar 2025 10:39:55 +0000 (10:39 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 7 Mar 2025 10:50:46 +0000 (10:50 +0000)
cookbooks/networking/recipes/default.rb

index f572b1e280fe462199b0e6a7b7ea614da536227f..4ab91c05385954b0498bc41971ca4d441668c512 100644 (file)
@@ -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"