]> git.openstreetmap.org Git - chef.git/commitdiff
Switch rhaegal to use the test replication feed
authorTom Hughes <tom@compton.nu>
Tue, 8 Dec 2020 19:14:44 +0000 (19:14 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 8 Dec 2020 19:21:50 +0000 (19:21 +0000)
cookbooks/tile/attributes/default.rb
cookbooks/tile/templates/default/replicate.erb
roles/rhaegal.rb

index a9636c1341f9128764941494ac2cc9f30b33eec7..7ad888fd0f45b232429a8b3ff0ac2375754cd9dc 100644 (file)
@@ -6,6 +6,8 @@ default[:tile][:database][:hstore] = true
 default[:tile][:database][:style_file] = nil
 default[:tile][:database][:tag_transform_script] = nil
 
+default[:tile][:replication][:url] = "https://planet.osm.org/replication/minute/"
+
 default[:tile][:data] = {}
 default[:tile][:styles] = {}
 
index bdd271f61a044a2c8474e3a22f6be99df3f78ff6..4e96d767d8dd1696d44c4a78427b3c2c68e9e170 100644 (file)
@@ -36,7 +36,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=$?
index 00fce56cf4345c2d21baaadc745700ccc9287abb..f027cce6269a01e698eed9815fb1776e274e96a6 100644 (file)
@@ -62,6 +62,9 @@ default_attributes(
       :cluster => "12/main",
       :postgis => "3"
     },
+    :replication => {
+      :url => "https://planet.osm.org/replication/test/minute/"
+    },
     :styles => {
       :default => {
         :tile_directories => [