]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/recipes/master.rb
Complete reset back to pre-reboot configuration. Finally.
[chef.git] / cookbooks / nominatim / recipes / master.rb
index 0d93ad7202e31c3adee9fc6457a21e5799beca43..b135022b8e4cf625b1dc7472e78b347751776786 100644 (file)
@@ -25,7 +25,7 @@ home_directory = data_bag_item("accounts", "nominatim")["home"]
 
 wal_archives = node[:rsyncd][:modules][:archive][:path]
 # XXX we really should get a list of nominatim-slave nodes here
-slaves = 'poldi'
+slaves = "poldi"
 
 git "#{home_directory}/nominatim" do
   action :checkout
@@ -60,7 +60,7 @@ end
 directory wal_archives do
   owner "postgres"
   group "postgres"
-  mode 0700
+  mode 0o700
   only_if { node[:postgresql][:settings][:defaults][:archive_mode] == "on" }
 end
 
@@ -68,11 +68,9 @@ template "/usr/local/bin/clean-db-nominatim" do
   source "clean-db-nominatim.erb"
   owner "root"
   group "root"
-  mode 0755
+  mode 0o755
   variables :archive_dir => wal_archives,
             :update_stop_file => "#{home_directory}/status/updates_disabled",
             :streaming_clients => slaves
   only_if { node[:postgresql][:settings][:defaults][:archive_mode] == "on" }
 end
-
-