]> git.openstreetmap.org Git - chef.git/commitdiff
Disable default mod_tile configuration
authorTom Hughes <tom@compton.nu>
Tue, 22 Jun 2021 21:26:27 +0000 (22:26 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 22 Jun 2021 21:26:27 +0000 (22:26 +0100)
cookbooks/tile/recipes/default.rb

index 0f8cd93035b3ce41eb4ad018d72a06014d5cefb6..d31b0bc3c049fd1916e70869a16e718977d3c641 100644 (file)
@@ -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