]> git.openstreetmap.org Git - chef.git/commitdiff
download external nominatim data
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 20 Dec 2014 20:46:28 +0000 (21:46 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 20 Dec 2014 20:46:28 +0000 (21:46 +0100)
cookbooks/nominatim/recipes/default.rb

index df12978450b9fbd01cc3476091f45972ee2050f4..3490d91e1c5fdc46dcc779958de457543f116ebe 100644 (file)
@@ -254,6 +254,30 @@ munin_plugin "nominatim_throttled_ips" do
   target "#{source_directory}/munin/nominatim_throttled_ips"
 end
 
   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"
 template "/usr/local/bin/backup-nominatim" do
   source "backup-nominatim.erb"
   owner "root"