X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/259ac0e11d58c0c0c8cf77faec43a688d9dc6da8..b75beef9a192ca60ed4a0c41417d4e944cea02be:/cookbooks/hardware/templates/default/smartd.conf.erb diff --git a/cookbooks/hardware/templates/default/smartd.conf.erb b/cookbooks/hardware/templates/default/smartd.conf.erb index b4f2aeb5f..5dea481bc 100644 --- a/cookbooks/hardware/templates/default/smartd.conf.erb +++ b/cookbooks/hardware/templates/default/smartd.conf.erb @@ -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 -%>