nominatim: download country gird
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 27 May 2017 12:40:51 +0000 (14:40 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 27 May 2017 12:40:51 +0000 (14:40 +0200)
cookbooks/nominatim/recipes/default.rb

index 0e60294..eb30570 100644 (file)
@@ -234,6 +234,14 @@ external_data.each do |fname|
   end
 end
 
+remote_file "#{source_directory}/data/country_osm_grid.sql.gz" do
+  action :create_if_missing
+  source "http://www.nominatim.org/data/country_grid.sql.gz"
+  owner "nominatim"
+  group "nominatim"
+  mode 0o644
+end
+
 template "/etc/cron.d/nominatim" do
   action node[:nominatim][:state] == :off ? :delete : :create
   source "nominatim.cron.erb"