X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/191aa8d721ed6adfd7fad6bb766c432ef5f70363..e3ca5c6e8ee819019a779fb20bcae0c0f08a1471:/cookbooks/hardware/recipes/default.rb 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")