X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/35171e1e6bceb46b7d575de5dda768eb97f4bd49..06ab8b35ae718f27206f7244f944308f6f52b540:/cookbooks/tile/templates/default/replicate.erb diff --git a/cookbooks/tile/templates/default/replicate.erb b/cookbooks/tile/templates/default/replicate.erb index 81fc66419..eedf4e576 100644 --- a/cookbooks/tile/templates/default/replicate.erb +++ b/cookbooks/tile/templates/default/replicate.erb @@ -31,7 +31,7 @@ do cp sequence.txt sequence-prev.txt # Fetch the next set of changes - pyosmium-get-changes --sequence-file=sequence.txt --outfile=${file} + pyosmium-get-changes --server=<%= node[:tile][:replication][:url] %> --sequence-file=sequence.txt --outfile=${file} # Save exit status status=$? @@ -47,13 +47,20 @@ do # Apply the changes to the database osm2pgsql --database gis --slim --append --number-processes=1 \ -<% if node[:tile][:node_file] -%> - --flat-nodes=<%= node[:tile][:node_file] %> \ +<% if node[:tile][:database][:node_file] -%> + --flat-nodes=<%= node[:tile][:database][:node_file] %> \ <% end -%> -<% if node[:tile][:styles][:default][:revision] >= "v4.0.0" -%> - --multi-geometry --hstore \ - --style=/srv/tile.openstreetmap.org/styles/default/openstreetmap-carto.style \ - --tag-transform-script=/srv/tile.openstreetmap.org/styles/default/openstreetmap-carto.lua \ +<% if node[:tile][:database][:multi_geometry] -%> + --multi-geometry \ +<% end -%> +<% if node[:tile][:database][:hstore] -%> + --hstore \ +<% end -%> +<% if node[:tile][:database][:style_file] -%> + --style=<%= node[:tile][:database][:style_file] %> \ +<% end -%> +<% if node[:tile][:database][:tag_transform_script] -%> + --tag-transform-script=<%= node[:tile][:database][:tag_transform_script] %> \ <% end -%> ${file}