X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2b39085d5ec6eb471f1d88ffb6d00822584bf7a0..cf163679e4cf9c867cde63fe724ba3e578660d0a:/cookbooks/hardware/templates/default/smartd.conf.erb?ds=sidebyside diff --git a/cookbooks/hardware/templates/default/smartd.conf.erb b/cookbooks/hardware/templates/default/smartd.conf.erb index e0d86831a..640cd27a9 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 -M exec /usr/local/bin/smartd-mailer +<% if disk[:smart] -%> +/dev/<%= disk[:device] %> -d <%= disk[:smart] %> -s (L/../../5/23|S/../.././01) -n standby -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 +/dev/<%= disk[:device] %> -s (L/../../5/23|S/../.././01) -n standby -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer <% end -%> <% end -%>