]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Fix rubocop warnings
[chef.git] / cookbooks / hardware / recipes / default.rb
index 13c1739b5a75de1d3ff5459aaac385e880e5c74c..5d1757b46159b429e8088f1c7bead43070f5b7ef 100644 (file)
@@ -31,9 +31,7 @@ end
 
 case node[:cpu][:"0"][:vendor_id]
 when "AuthenticAMD"
-  if node[:lsb][:release].to_f >= 14.04
-    package "amd64-microcode"
-  end
+  package "amd64-microcode" if node[:lsb][:release].to_f >= 14.04
 end
 
 if node[:dmi] && node[:dmi][:system]
@@ -64,13 +62,13 @@ when "HP"
   package "hp-health" do
     action :install
     version "10.0.0.1.3-4."
-    options "--allow-downgrades"
+    options "--force-yes"
     notifies :restart, "service[hp-health]"
   end
 
   service "hp-health" do
     action [:enable, :start]
-    supports :status => true, :restart => true, :reload => true
+    supports :status => true, :restart => true
   end
 
   units << "1"
@@ -184,9 +182,7 @@ service "haveged" do
   action [:enable, :start]
 end
 
-if node[:kernel][:modules].include?("ipmi_si")
-  package "ipmitool"
-end
+package "ipmitool" if node[:kernel][:modules].include?("ipmi_si")
 
 if node[:lsb][:release].to_f >= 12.10
   package "irqbalance"