]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/templates/default/smartd.conf.erb
Do more SMART self tests
[chef.git] / cookbooks / hardware / templates / default / smartd.conf.erb
index 3f793175a742116e1ae6f7f72f44ff40e8a4daaf..6f88cf674ed1dcbdd11a7d21f5886266f692ed97 100644 (file)
@@ -1,9 +1,9 @@
 # DO NOT EDIT - This file is being maintained by Chef
   
 <% @disks.each do |disk| -%>
 # DO NOT EDIT - This file is being maintained by Chef
   
 <% @disks.each do |disk| -%>
-<% if disk[:driver] -%>
-/dev/<%= disk[:device] %> -d <%= disk[:driver] %>,<%= disk[:id] %> -m admins@openstreetmap.org
+<% if disk[:smart] -%>
+/dev/<%= disk[:device] %> -d <%= disk[:smart] %> -s (S/../.././4|L/../../7/2) -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
 <% else -%>
 <% else -%>
-/dev/<%= disk[:device] %> -m admins@openstreetmap.org
+/dev/<%= disk[:device] %> -s (S/../.././4|L/../../7/2) -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
 <% end -%>
 <% end -%>
 <% end -%>
 <% end -%>