]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/recipes/default.rb
Drop role for gorwen
[chef.git] / cookbooks / nominatim / recipes / default.rb
index a025211c6f70cd3f03f5a8aa070895aa5e0bbdac..d8440761a08a5513ced2497b04ab41597a755046 100644 (file)
@@ -219,6 +219,7 @@ elsif node[:nominatim][:api_flavour] == "python"
   python_package "jinja2" do
     python_virtualenv python_directory
     version "3.1.4"
+  end
 
   python_package "datrie" do
     python_virtualenv python_directory
@@ -228,6 +229,12 @@ elsif node[:nominatim][:api_flavour] == "python"
   python_package "psutil" do
     python_virtualenv python_directory
     version "6.0.0"
+  end
+
+  python_package "osmium" do
+    python_virtualenv python_directory
+    version "3.7.0"
+  end
 end
 
 source_directory = "#{basedir}/src/nominatim"
@@ -385,7 +392,7 @@ elsif node[:nominatim][:api_flavour] == "python"
     working_directory project_directory
     standard_output "append:#{node[:nominatim][:logdir]}/gunicorn.log"
     standard_error "inherit"
-    exec_start "#{python_directory}/bin/gunicorn --max-requests 200000 -b unix:/run/gunicorn-nominatim.openstreetmap.org.sock -w #{node[:nominatim][:api_workers]} -k uvicorn.workers.UvicornWorker nominatim.server.falcon.server:run_wsgi"
+    exec_start "#{python_directory}/bin/gunicorn --max-requests 200000 -b unix:/run/gunicorn-nominatim.openstreetmap.org.sock -w #{node[:nominatim][:api_workers]} -k uvicorn.workers.UvicornWorker nominatim_api.server.falcon.server:run_wsgi"
     exec_reload "/bin/kill -s HUP $MAINPID"
     environment :PYTHONPATH => "/usr/local/lib/nominatim/lib-python/"
     kill_mode "mixed"