]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: download country grid before building
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 12 Feb 2021 20:25:55 +0000 (21:25 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 12 Feb 2021 20:25:55 +0000 (21:25 +0100)
cookbooks/nominatim/recipes/default.rb

index 7af64c90fae1432705102a0cb86e3be40d1fbd45..fbbe30af40c515e8ddc35c3fc2633b835fba2bc3 100644 (file)
@@ -201,6 +201,14 @@ git source_directory do
   notifies :run, "execute[compile_nominatim]", :immediately
 end
 
+remote_file "#{source_directory}/data/country_osm_grid.sql.gz" do
+  action :create_if_missing
+  source "https://www.nominatim.org/data/country_grid.sql.gz"
+  owner "nominatim"
+  group "nominatim"
+  mode "644"
+end
+
 execute "compile_nominatim" do
   action :nothing
   user "nominatim"
@@ -273,14 +281,6 @@ external_data.each do |fname|
   end
 end
 
-remote_file "#{source_directory}/data/country_osm_grid.sql.gz" do
-  action :create_if_missing
-  source "https://www.nominatim.org/data/country_grid.sql.gz"
-  owner "nominatim"
-  group "nominatim"
-  mode "644"
-end
-
 if node[:nominatim][:state] == "off"
   cron_d "nominatim-backup" do
     action :delete