]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/templates/default/smartd.conf.erb
Treat sata_mv and sata_nv as "direct" disk controllers
[chef.git] / cookbooks / hardware / templates / default / smartd.conf.erb
index b4f2aeb5f0fe7e759fde8bc201614d6eb5851ac6..5dea481bc96a1f0935b4bd86927702fe27f3ae0e 100644 (file)
@@ -1,9 +1,9 @@
 # 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] %> -s S/../../7/02 -m admins@openstreetmap.org
+<% if disk[:smart] -%>
+/dev/<%= disk[:device] %> -d <%= disk[:smart] %> -s S/../../7/02 -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
 <% else -%>
-/dev/<%= disk[:device] %> -s S/../../7/02 -m admins@openstreetmap.org
+/dev/<%= disk[:device] %> -s S/../../7/02 -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
 <% end -%>
 <% end -%>