]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/templates/default/smartd.conf.erb
Use ohai disk information to configure smartd and munin
[chef.git] / cookbooks / hardware / templates / default / smartd.conf.erb
index e0d86831a27226e67fb0a8a225ed5ed499c0b047..5dea481bc96a1f0935b4bd86927702fe27f3ae0e 100644 (file)
@@ -1,8 +1,8 @@
 # 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 -M exec /usr/local/bin/smartd-mailer
+<% 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 -M exec /usr/local/bin/smartd-mailer
 <% end -%>