X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fbdd990ff399d26a11e0dce096e15ef2d8cde521..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/nominatim/recipes/master.rb diff --git a/cookbooks/nominatim/recipes/master.rb b/cookbooks/nominatim/recipes/master.rb index d33d7658d..341f3d664 100644 --- a/cookbooks/nominatim/recipes/master.rb +++ b/cookbooks/nominatim/recipes/master.rb @@ -19,6 +19,10 @@ include_recipe "git" +passwords = data_bag_item("nominatim", "passwords") +database_cluster = node[:nominatim][:database][:cluster] +home_directory = data_bag_item("accounts", "nominatim")["home"] + git "#{home_directory}/nominatim" do action :checkout repository node[:nominatim][:repository] @@ -30,10 +34,6 @@ end include_recipe "nominatim::base" -passwords = data_bag_item("nominatim", "passwords") -database_cluster = node[:nominatim][:database][:cluster] -home_directory = data_bag_item("accounts", "nominatim")["home"] - superusers = %w(tomh lonvia twain nominatim) superusers.each do |user| @@ -52,4 +52,3 @@ postgresql_user "replication" do password passwords["replication"] replication true end -