Install ipmitool on machines with the ipmi_si module loaded
authorTom Hughes <tom@compton.nu>
Mon, 3 Feb 2014 22:32:14 +0000 (22:32 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 3 Feb 2014 22:32:14 +0000 (22:32 +0000)
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
 
+if node[:kernel][:modules].include?("ipmi_si")
+  package "ipmitool"
+end
+
 tools_packages = []
 status_packages = {}