X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0199f3853369b47e62424ed434665d9f768b2d38..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/nominatim/recipes/master.rb?ds=sidebyside diff --git a/cookbooks/nominatim/recipes/master.rb b/cookbooks/nominatim/recipes/master.rb index e113cbfd3..341f3d664 100644 --- a/cookbooks/nominatim/recipes/master.rb +++ b/cookbooks/nominatim/recipes/master.rb @@ -17,11 +17,23 @@ # limitations under the License. # -include_recipe "nominatim::base" +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] + enable_submodules true + user "nominatim" + group "nominatim" + notifies :run, "execute[compile_nominatim]" +end + +include_recipe "nominatim::base" + superusers = %w(tomh lonvia twain nominatim) superusers.each do |user| @@ -40,12 +52,3 @@ postgresql_user "replication" do password passwords["replication"] replication true end - -git "#{home_directory}/nominatim" do - action :checkout - repository node[:nominatim][:repository] - enable_submodules true - user "nominatim" - group "nominatim" - notifies :run, "execute[compile_nominatim]" -end