]> git.openstreetmap.org Git - chef.git/blob - cookbooks/hardware/templates/default/munin.hddtemp.erb
Fix rubocopy warnings
[chef.git] / cookbooks / hardware / templates / default / munin.hddtemp.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 [hddtemp_smartctl]
4 env.drives <%= @disks.map { |d| d[:hddtemp] }.sort.join(" ") %>
5 <% @disks.sort_by { |d| d[:hddtemp] }.each do |disk| -%>
6 <% if disk[:driver] -%>
7 env.type_<%= disk[:hddtemp] %> <%= disk[:driver] %>,<%= disk[:id] %>
8 <% end -%>
9 env.dev_<%= disk[:hddtemp] %> <%= disk[:device] %>
10 <% end -%>