]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Configure ipmi exporter for prometheus
[chef.git] / cookbooks / hardware / recipes / default.rb
index e8f903f64cc8a255aedcc127fae666f85a42b89d..fca8031979c17b7bb7df46f3b69e54abe860c251 100644 (file)
@@ -174,7 +174,14 @@ service "haveged" do
   action [:enable, :start]
 end
 
-package "ipmitool" if node[:kernel][:modules].include?("ipmi_si")
+if node[:kernel][:modules].include?("ipmi_si")
+  package "ipmitool"
+  package "freeipmi-tools"
+
+  prometheus_exporter "ipmi" do
+    port 9290
+  end
+end
 
 package "irqbalance"