From 860cd6c38a33395e96122af830af11e1d75ddc02 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 8 Dec 2020 19:14:44 +0000 Subject: [PATCH] Switch rhaegal to use the test replication feed --- cookbooks/tile/attributes/default.rb | 2 ++ cookbooks/tile/templates/default/replicate.erb | 2 +- roles/rhaegal.rb | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cookbooks/tile/attributes/default.rb b/cookbooks/tile/attributes/default.rb index a9636c134..7ad888fd0 100644 --- a/cookbooks/tile/attributes/default.rb +++ b/cookbooks/tile/attributes/default.rb @@ -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] = {} diff --git a/cookbooks/tile/templates/default/replicate.erb b/cookbooks/tile/templates/default/replicate.erb index bdd271f61..4e96d767d 100644 --- a/cookbooks/tile/templates/default/replicate.erb +++ b/cookbooks/tile/templates/default/replicate.erb @@ -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=$? diff --git a/roles/rhaegal.rb b/roles/rhaegal.rb index 00fce56cf..f027cce62 100644 --- a/roles/rhaegal.rb +++ b/roles/rhaegal.rb @@ -62,6 +62,9 @@ default_attributes( :cluster => "12/main", :postgis => "3" }, + :replication => { + :url => "https://planet.osm.org/replication/test/minute/" + }, :styles => { :default => { :tile_directories => [ -- 2.39.5