X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/259ac0e11d58c0c0c8cf77faec43a688d9dc6da8..54b26b3054c5cf68acde82ec008be465b5c7d83f:/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..6f88cf674 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/../.././4|L/../../7/2) -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/../.././4|L/../../7/2) -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer <% end -%> <% end -%>