From dad206335d841720939ac97b6ea90307db2976e6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 22 Jun 2021 22:26:27 +0100 Subject: [PATCH] Disable default mod_tile configuration --- cookbooks/tile/recipes/default.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 0f8cd9303..d31b0bc3c 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -41,6 +41,10 @@ apache_module "tile" do conf "tile.conf.erb" end +apache_conf "renderd" do + action :disable +end + ssl_certificate node[:fqdn] do domains [node[:fqdn], "tile.openstreetmap.org", "render.openstreetmap.org"] notifies :reload, "service[apache2]" @@ -56,7 +60,11 @@ tilecaches = search(:node, "roles:tilecache").sort_by { |n| n[:hostname] } fastlyips = JSON.parse(IO.read("#{Chef::Config[:file_cache_path]}/fastly-ip-list.json")) apache_site "default" do - action [:disable] + action :disable +end + +apache_site "tileserver_site" do + action :disable end apache_site "tile.openstreetmap.org" do -- 2.39.5