X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0ea36e10faf967f6b51a3b4025371b4607edc6b4..22d4d76204611d2dd46ef62a0f6f7f1fbf78987d:/cookbooks/tile/recipes/default.rb?ds=inline diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index f11c8dc24..f2bfd6a7b 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -409,6 +409,10 @@ postgresql_user "tile" do cluster node[:tile][:database][:cluster] end +postgresql_user "www-data" do + cluster node[:tile][:database][:cluster] +end + postgresql_user "_renderd" do cluster node[:tile][:database][:cluster] end @@ -443,7 +447,7 @@ end cluster node[:tile][:database][:cluster] database "gis" owner "tile" - permissions "tile" => :all, "_renderd" => :select + permissions "tile" => :all, "www-data" => :select, "_renderd" => :select end end @@ -461,6 +465,15 @@ if node[:tile][:database][:external_data_script] group "tile" ignore_failure true 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, "_renderd" => :select + end + end end postgresql_munin "gis" do