X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/02326106f95c6cee6974e24603876ddd750889f3..3c0e9a8a3178545962f25797d00d0edf9d8cd1fe:/cookbooks/nominatim/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 452f3a640..78f0ff54d 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -111,6 +111,10 @@ if platform?("debian") python3-dev pkg-config osm2pgsql + ruby + ruby-file-tail + ruby-pg + ruby-webrick ] python_virtualenv python_directory do @@ -144,7 +148,7 @@ if platform?("debian") owner "nominatim" group "nominatim" mode "664" - variables :base_url => node[:nominatim][:state] == "off" ? node[:fqdn] : "nominatim.openstreetmap.org", + variables :base_url => "nominatim.openstreetmap.org", :dbname => node[:nominatim][:dbname], :flatnode_file => node[:nominatim][:flatnode_file], :log_file => "#{node[:nominatim][:logdir]}/query.log", @@ -280,13 +284,13 @@ if platform?("debian") end systemd_timer "nominatim-update-maintenance-trigger" do - action node[:nominatim][:state] != "off" ? :create : :delete + action :create description "Schedule daily maintenance tasks for Nominatim DB" on_calendar "*-*-* 02:03:00 UTC" end service "nominatim-update-maintenance-trigger" do - action node[:nominatim][:state] != "off" ? :enable : :disable + action :enable end ## Nominatim UI