From 252645d71a019b307295d072489fbd74c4f60c03 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 20 Dec 2014 21:46:28 +0100 Subject: [PATCH] download external nominatim data --- cookbooks/nominatim/recipes/default.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index df1297845..3490d91e1 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -254,6 +254,30 @@ munin_plugin "nominatim_throttled_ips" do target "#{source_directory}/munin/nominatim_throttled_ips" end +remote_file "#{source_directory}/data/wikipedia_article.sql.bin" do + action :create_if_missing + source "http://www.nominatim.org/data/wikipedia_article.sql.bin" + owner "nominatim" + group "nominatim" + mode 0644 +end + +remote_file "#{source_directory}/data/wikipedia_redirect.sql.bin" do + action :create_if_missing + source "http://www.nominatim.org/data/wikipedia_redirect.sql.bin" + owner "nominatim" + group "nominatim" + mode 0644 +end + +remote_file "#{source_directory}/data/gb_postcode_data.sql.gz" do + action :create_if_missing + source "http://www.nominatim.org/data/gb_postcode_data.sql.gz" + owner "nominatim" + group "nominatim" + mode 0644 +end + template "/usr/local/bin/backup-nominatim" do source "backup-nominatim.erb" owner "root" -- 2.39.5