nominatim: fix erb syntax
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 18 Nov 2015 13:26:17 +0000 (14:26 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 18 Nov 2015 13:26:17 +0000 (14:26 +0100)
cookbooks/nominatim/recipes/master.rb
cookbooks/nominatim/templates/default/clean-db-nominatim.erb

index 96117a44014a5369312acd63c243b3a7c2f5e3ea..a3200312bc787aaaabdf47d2cd57ef083b3934ea 100644 (file)
@@ -24,7 +24,7 @@ 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(' ')
+slaves = search(:node, 'role:nominatim-slave').map{ |result| result[:fqdn] }.join(' ')
 
 git "#{home_directory}/nominatim" do
   action :checkout
index 92b731a986a6a2f2dafb9a56b8efd334521a7690..2930e151d2465d225db1789ca4d3acd0a8c4299f 100644 (file)
@@ -15,7 +15,7 @@ done
 # Cleanup archive directory
 oldest=`date +%s`
 
-for fl in <% @streaming_clients %>; do
+for fl in <%= @streaming_clients %>; do
   lastupdate=`wget -O - -q http://${fl}.openstreetmap.org/last_update.php`
   if [[ "$?" != "0" ]]; then
     oldest=0