From 0cd33f1c86cc574bc644d443a80f3bf77631c568 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 27 Jun 2022 09:55:39 +0100 Subject: [PATCH] Don't try and install hp-health on 22.04 --- cookbooks/hardware/recipes/default.rb | 2 ++ 1 file changed, 2 insertions(+) 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") -- 2.45.1