]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/letsencrypt/templates/default/check-certificates.erb
Check all hosts for shared certificates
[chef.git] / cookbooks / letsencrypt / templates / default / check-certificates.erb
index d03e98a4dfe3f6ced2ef08d7aa2d1cadae7ae785..d07bacf5c56e338451acda43a6e1110281041ebb 100644 (file)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
 <% @certificates.each_value do |certificate| -%>
-/srv/acme.openstreetmap.org/bin/check-certificate <%= certificate[:domains].join(" ") %>
+<% certificate[:nodes].each do |host| -%>
+/srv/acme.openstreetmap.org/bin/check-certificate <%= host[:name] %> <%= host[:address] %> <%= certificate[:domains].join(" ") %>
+<% end -%>
 <% end -%>