X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/819d5a974e78d51fcc4fa7d92275607a6b118e2c..c87a97890768b4427f078d7deda0d1edf4bb39ce:/cookbooks/tile/recipes/default.rb diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 4a1454760..5299a3e38 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -426,6 +426,30 @@ end end end +package %w[ + gdal-bin + python3-yaml + python3-psycopg2 +] + +if node[:tile][:database][:external_data_script] + execute node[:tile][:database][:external_data_script] do + command node[:tile][:database][:external_data_script] + 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 cluster node[:tile][:database][:cluster] database "gis"