From: Sarah Hoffmann Date: Sat, 20 Dec 2014 20:46:28 +0000 (+0100) Subject: download external nominatim data X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/252645d71a019b307295d072489fbd74c4f60c03 download external nominatim data --- 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"