Install ipmitool on machines with the ipmi_si module loaded
[chef.git] / cookbooks / hardware / recipes / default.rb
index 9fa225d2669d00145d9fd2e1f451f3f0225f9428..b10eff2dbddbc9796451ff81bbd3def45846fd8e 100644 (file)
@@ -141,6 +141,10 @@ template "/etc/initramfs-tools/conf.d/mdadm" do
   notifies :run, "execute[update-initramfs]"
 end
 
   notifies :run, "execute[update-initramfs]"
 end
 
+if node[:kernel][:modules].include?("ipmi_si")
+  package "ipmitool"
+end
+
 tools_packages = []
 status_packages = {}
 
 tools_packages = []
 status_packages = {}