From 35cf5ef86f73bfb27ca4a82cfd2e7b1975b62f3f Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 4 Nov 2024 08:51:38 +0100 Subject: [PATCH] nominatim: remove remaining references to :state --- cookbooks/nominatim/recipes/default.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 87c917889..78f0ff54d 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -148,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", @@ -284,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 -- 2.39.5