X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3e091ef3d515a094fd4493faacbc5c3ba266c2ad..135b0061b49861418cfb01083c1fe42e9f11c1db:/cookbooks/letsencrypt/templates/default/check-certificates.erb diff --git a/cookbooks/letsencrypt/templates/default/check-certificates.erb b/cookbooks/letsencrypt/templates/default/check-certificates.erb index d03e98a4d..06f4f0a98 100644 --- a/cookbooks/letsencrypt/templates/default/check-certificates.erb +++ b/cookbooks/letsencrypt/templates/default/check-certificates.erb @@ -1,5 +1,7 @@ #!/bin/sh -<% @certificates.each_value do |certificate| -%> -/srv/acme.openstreetmap.org/bin/check-certificate <%= certificate[:domains].join(" ") %> +<% @certificates.values.sort_by { |c| c[:domains].first }.each do |certificate| -%> +<% certificate[:nodes].sort_by { |h| h[:name] }.each do |host| -%> +/srv/acme.openstreetmap.org/bin/check-certificate <%= host[:name] %> <%= host[:address] %> <%= certificate[:domains].join(" ") %> +<% end -%> <% end -%>