From: Jochen Topf Date: Thu, 29 Oct 2020 13:03:55 +0000 (+0100) Subject: Switch planet used for taginfo to history planet X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/7acc6268f62e1ee42f8c58509b84bab9c4b3c647 Switch planet used for taginfo to history planet --- diff --git a/cookbooks/planet/recipes/current.rb b/cookbooks/planet/recipes/current.rb index c7a4a8f50..fefcaaad7 100644 --- a/cookbooks/planet/recipes/current.rb +++ b/cookbooks/planet/recipes/current.rb @@ -43,9 +43,9 @@ directory "/var/lib/planet" do mode "755" end -remote_file "/var/lib/planet/planet.pbf" do +remote_file "/var/lib/planet/planet.osh.pbf" do action :create_if_missing - source "https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf" + source "https://planet.openstreetmap.org/pbf/full-history/history-latest.osm.pbf" owner "planet" group "planet" mode "644" diff --git a/cookbooks/planet/templates/default/planet-update-file.erb b/cookbooks/planet/templates/default/planet-update-file.erb index 36786e232..4b067e640 100644 --- a/cookbooks/planet/templates/default/planet-update-file.erb +++ b/cookbooks/planet/templates/default/planet-update-file.erb @@ -4,11 +4,13 @@ # setup +SUFFIX="osh.pbf" + PLANETDIR="/var/lib/planet" -PLANETPREV="${PLANETDIR}/planet-previous.pbf" -PLANETCURR="${PLANETDIR}/planet.pbf" -PLANETNEW="${PLANETDIR}/planet-new.pbf" -PLANETTMP="${PLANETDIR}/planet-tmp.pbf" +PLANETPREV="${PLANETDIR}/planet-previous.${SUFFIX}" +PLANETCURR="${PLANETDIR}/planet.${SUFFIX}" +PLANETNEW="${PLANETDIR}/planet-new.${SUFFIX}" +PLANETTMP="${PLANETDIR}/planet-tmp.${SUFFIX}" pyosmium-up-to-date -v -o "$PLANETNEW" "$PLANETCURR" retval=$? diff --git a/cookbooks/taginfo/recipes/default.rb b/cookbooks/taginfo/recipes/default.rb index be0cbb614..fc5d424e3 100644 --- a/cookbooks/taginfo/recipes/default.rb +++ b/cookbooks/taginfo/recipes/default.rb @@ -149,7 +149,7 @@ node[:taginfo][:sites].each do |site| settings["paths"]["bin_dir"] = "#{directory}/build/src" settings["sources"]["download"] = "" settings["sources"]["create"] = "db languages projects wiki" - settings["sources"]["db"]["planetfile"] = "/var/lib/planet/planet.pbf" + settings["sources"]["db"]["planetfile"] = "/var/lib/planet/planet.osh.pbf" settings["sources"]["db"]["bindir"] = "#{directory}/build/src" settings["tagstats"]["geodistribution"] = "DenseMmapArray"