From: Tom Hughes Date: Mon, 27 Jun 2022 08:55:39 +0000 (+0100) Subject: Don't try and install hp-health on 22.04 X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0cd33f1c86cc574bc644d443a80f3bf77631c568 Don't try and install hp-health on 22.04 --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 751810a3e..49af1f52e 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -62,11 +62,13 @@ when "HP" package "hp-health" do action :install notifies :restart, "service[hp-health]" + only_if { node[:lsb][:release].to_f < 22.04 } end service "hp-health" do action [:enable, :start] supports :status => true, :restart => true + only_if { node[:lsb][:release].to_f < 22.04 } end if product.end_with?("Gen8", "Gen9")