]> git.openstreetmap.org Git - chef.git/commitdiff
Allow external data script to grant render permission
authorTom Hughes <tom@compton.nu>
Tue, 27 Apr 2021 19:55:14 +0000 (20:55 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 27 Apr 2021 19:55:14 +0000 (20:55 +0100)
cookbooks/tile/recipes/default.rb

index 7d5052fc2822b388146bd667b0c3d27093df7657..0f8cd93035b3ce41eb4ad018d72a06014d5cefb6 100644 (file)
@@ -436,20 +436,11 @@ package %w[
 
 if node[:tile][:database][:external_data_script]
   execute node[:tile][:database][:external_data_script] do
-    command node[:tile][:database][:external_data_script]
+    command "#{node[:tile][:database][:external_data_script]} -R www-data"
     cwd "/srv/tile.openstreetmap.org"
     user "tile"
     group "tile"
   end
-
-  Array(node[:tile][:database][:external_data_tables]).each do |table|
-    postgresql_table table do
-      cluster node[:tile][:database][:cluster]
-      database "gis"
-      owner "tile"
-      permissions "tile" => :all, "www-data" => :select
-    end
-  end
 end
 
 postgresql_munin "gis" do