]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/templates/default/sensors.conf.erb
Initial work to manage lm_sensors
[chef.git] / 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 (file)
index 0000000..fb1bdb2
--- /dev/null
@@ -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 -%>