]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: make forward dependencies configurable
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 21 Nov 2022 13:43:21 +0000 (14:43 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 21 Nov 2022 13:43:21 +0000 (14:43 +0100)
cookbooks/nominatim/attributes/default.rb
cookbooks/nominatim/recipes/default.rb
cookbooks/nominatim/templates/default/nominatim.env.erb

index dca4e71e6ea0076cb80351653948d7df90512268..301faf53d905aa4f029b9ab5cd452bcad35da870 100644 (file)
@@ -24,7 +24,8 @@ default[:nominatim][:fpm_pools] = {
 }
 
 default[:nominatim][:config] = {
-  :tokenizer => "icu"
+  :tokenizer => "icu",
+  :forward_dependencies => "no"
 }
 
 default[:nominatim][:redirects] = {}
index 7b218d9511324d6b876286bdb7a4ba79925f2072..fbfdfe25f6d459a470a7376d44a13baddfccb389 100644 (file)
@@ -226,7 +226,8 @@ template "#{project_directory}/.env" do
             :dbname => node[:nominatim][:dbname],
             :flatnode_file => node[:nominatim][:flatnode_file],
             :log_file => "#{node[:nominatim][:logdir]}/query.log",
-            :tokenizer => node[:nominatim][:config][:tokenizer]
+            :tokenizer => node[:nominatim][:config][:tokenizer],
+            :forward_dependencies => node[:nominatim][:config][:forward_dependencies]
 end
 
 %w[wikimedia-importance.sql.gz gb_postcodes.csv.gz us_postcodes.csv.gz].each do |fname|
index aca17fdd5f9db28ce201945a085ced4578690a35..239208500888dbfdda6bfc6abf66e502df212ed8 100644 (file)
@@ -12,6 +12,7 @@ NOMINATIM_IMPORT_STYLE=extratags
 NOMINATIM_USE_US_TIGER_DATA=yes
 
 NOMINATIM_TOKENIZER="<%= @tokenizer %>"
+NOMINATIM_UPDATE_FORWARD_DEPENDENCIES="<%= @forward_dependencies %>"
 
 NOMINATIM_TABLESPACE_SEARCH_DATA=dsearch
 NOMINATIM_TABLESPACE_SEARCH_INDEX=isearch