]> git.openstreetmap.org Git - chef.git/blob - cookbooks/hardware/templates/default/smartd.conf.erb
Improve device detection for P410i disk controllers
[chef.git] / cookbooks / hardware / templates / default / smartd.conf.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2   
3 <% @disks.each do |disk| -%>
4 <% if disk[:smart] -%>
5 /dev/<%= disk[:device] %> -d <%= disk[:smart] %> -s (L/../../5/23|S/../.././01) -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
6 <% else -%>
7 /dev/<%= disk[:device] %> -s (L/../../5/23|S/../.././01) -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
8 <% end -%>
9 <% end -%>