]> git.openstreetmap.org Git - chef.git/commitdiff
Configure ipmi exporter for prometheus
authorTom Hughes <tom@compton.nu>
Wed, 28 Oct 2020 20:23:54 +0000 (20:23 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 28 Oct 2020 20:23:54 +0000 (20:23 +0000)
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"