From: Tom Hughes Date: Sat, 28 Jul 2018 08:53:40 +0000 (+0100) Subject: Improve determination of external IP addresses for certificate checks X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/e0e20480e31ea1be619d89a7d674edf02d6c8208 Improve determination of external IP addresses for certificate checks --- diff --git a/cookbooks/letsencrypt/recipes/default.rb b/cookbooks/letsencrypt/recipes/default.rb index 92c8311de..5bc9e3313 100644 --- a/cookbooks/letsencrypt/recipes/default.rb +++ b/cookbooks/letsencrypt/recipes/default.rb @@ -124,7 +124,7 @@ certificates = search(:node, "letsencrypt:certificates").each_with_object({}) do n[:letsencrypt][:certificates].each do |name, details| c[name] ||= details.merge(:nodes => []) - c[name][:nodes] << { :name => n[:fqdn], :address => n[:ipaddress] } + c[name][:nodes] << { :name => n[:fqdn], :address => n.external_ipaddress } end end