]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/recipes/default.rb
Merge remote-tracking branch 'github/pull/263'
[chef.git] / cookbooks / nominatim / recipes / default.rb
index 63fe2ca0662c8ecd9a15fcdbf66650bbfa988337..1cd8d767e2e496f0dff1f2a56db7094221026545 100644 (file)
@@ -152,6 +152,7 @@ package %w[
   libproj-dev
   python3-pyosmium
   pyosmium
+  python3-psycopg2
 ]
 
 source_directory = "#{basedir}/nominatim"
@@ -222,8 +223,7 @@ template "/etc/logrotate.d/nominatim" do
 end
 
 external_data = [
-  "wikipedia_article.sql.bin",
-  "wikipedia_redirect.sql.bin",
+  "wikimedia-importance.sql.gz",
   "gb_postcode_data.sql.gz"
 ]
 
@@ -340,6 +340,13 @@ node[:nominatim][:fpm_pools].each do |name, data|
   end
 end
 
+systemd_service "apache-nominatim" do
+  service "apache2"
+  dropin "nominatim"
+  tasks_max 12000
+  notifies :restart, "service[apache2]"
+end
+
 ssl_certificate "nominatim.openstreetmap.org" do
   domains ["nominatim.openstreetmap.org",
            "nominatim.osm.org",