X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/647c3003e35fe19d949e1d78c4bb6f2c526e6bad..d02429561da1d3ad2b5bbe0ac1108e8fc7774922:/cookbooks/imagery/resources/site.rb diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index 9cea98f0a..e4c2c6f86 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -95,15 +95,11 @@ action :create do domains tile_domains end - resolvers = node[:networking][:nameservers].map do |resolver| - IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : resolver - end - nginx_site new_resource.site do template "nginx_imagery.conf.erb" directory "/srv/imagery/#{new_resource.site}" restart_nginx false - variables new_resource.to_hash.merge(:resolvers => resolvers) + variables new_resource.to_hash end end