end
squid_fragment "tilecache" do
- template_source "squid.conf.erb"
+ template "squid.conf.erb"
variables :caches => tilecaches, :renders => tilerenders
end
action [:delete]
end
-resolvers = node[:networking][:nameservers].map do |resolver|
- IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : resolver
-end
-
template "/usr/local/bin/nginx_generate_tilecache_qos_map" do
source "nginx_generate_tilecache_qos_map.erb"
owner "root"
end
nginx_site "tile-ssl" do
- template_source "nginx_tile_ssl.conf.erb"
- variables :resolvers => resolvers, :caches => tilecaches
+ template "nginx_tile_ssl.conf.erb"
+ variables :caches => tilecaches
end
template "/etc/logrotate.d/nginx" do