X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2b39085d5ec6eb471f1d88ffb6d00822584bf7a0..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 e0d86831a..5dea481bc 100644 --- a/cookbooks/hardware/templates/default/smartd.conf.erb +++ b/cookbooks/hardware/templates/default/smartd.conf.erb @@ -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 -%>