X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/719d5e33dbd0c8aed11e5260d7784a2b613699bd..f31ba7e2c98ff3c1ccab81c17bfec79cd7a9065a:/cookbooks/nominatim/recipes/master.rb diff --git a/cookbooks/nominatim/recipes/master.rb b/cookbooks/nominatim/recipes/master.rb index 96117a440..22a2a580c 100644 --- a/cookbooks/nominatim/recipes/master.rb +++ b/cookbooks/nominatim/recipes/master.rb @@ -24,7 +24,8 @@ database_cluster = node[:nominatim][:database][:cluster] home_directory = data_bag_item("accounts", "nominatim")["home"] wal_archives = node[:rsyncd][:modules][:archive][:path] -slaves = search(:node, 'role:nominatim-slave').map{ |result| result['name'] }.join(' ') +# XXX we really should get a list of nominatim-slave nodes here +slaves = "poldi" git "#{home_directory}/nominatim" do action :checkout @@ -69,9 +70,7 @@ template "/usr/local/bin/clean-db-nominatim" do group "root" mode 0755 variables :archive_dir => wal_archives, - :update_stop_file => "{home_directory}/status/updates_disabled", + :update_stop_file => "#{home_directory}/status/updates_disabled", :streaming_clients => slaves only_if { node[:postgresql][:settings][:defaults][:archive_mode] == "on" } end - -