X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/e843effe2166586a6a904b38c77bdffcbd458bd4..011a86b80a30eb69ae1a1cb6ab2e0fda83604db1:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 271e26754..df7af6e50 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -178,8 +178,17 @@ if node[:kernel][:modules].include?("ipmi_si") package "ipmitool" package "freeipmi-tools" + template "/etc/prometheus/ipmi_local.yml" do + source "ipmi_local.yml.erb" + owner "root" + group "root" + mode "644" + end + prometheus_exporter "ipmi" do port 9290 + options "--config.file=/etc/prometheus/ipmi_local.yml" + subscribes :restart, "template[/etc/prometheus/ipmi_local.yml]" end end