# 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|
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