X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/5fa8371c3f85518e08a49bb6719002f213fd41fb..8ad66df69a108a031ff4fb869f002a6598005649:/cookbooks/hardware/templates/default/sensors.conf.erb diff --git a/cookbooks/hardware/templates/default/sensors.conf.erb b/cookbooks/hardware/templates/default/sensors.conf.erb new file mode 100644 index 000000000..fb1bdb2e2 --- /dev/null +++ b/cookbooks/hardware/templates/default/sensors.conf.erb @@ -0,0 +1,9 @@ +# DO NOT EDIT - This file is being maintained by Chef +<% node[:hardware][:sensors].sort.each do |chip,sensors| -%> + +chip "<%= chip %>" +<%= Chef::Sensors.attributes sensors[:volts], [:min, :max] -%> +<%= Chef::Sensors.attributes sensors[:fans], [:min] -%> +<%= Chef::Sensors.attributes sensors[:temps], [:max, :max_hyst, :crit, :crit_hyst] -%> +<%= Chef::Sensors.attributes sensors[:power], [:interval] -%> +<% end -%>