From: Sarah Hoffmann Date: Mon, 4 Jul 2022 09:26:19 +0000 (+0200) Subject: nominatim-v4: create DB admin users X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/83a87d06539613d585343ce7d4714e97cdbf18c4 nominatim-v4: create DB admin users --- diff --git a/cookbooks/nominatim/recipes/version4.rb b/cookbooks/nominatim/recipes/version4.rb index 19e3d1aa9..c9bdf471e 100644 --- a/cookbooks/nominatim/recipes/version4.rb +++ b/cookbooks/nominatim/recipes/version4.rb @@ -64,6 +64,14 @@ postgis_version = node[:nominatim][:postgis] package "postgresql-#{postgresql_version}-postgis-#{postgis_version}" +node[:nominatim][:dbadmins].each do |user| + postgresql_user user do + cluster node[:nominatim][:dbcluster] + superuser true + only_if { node[:nominatim][:state] != "slave" } + end +end + postgresql_user "nominatim" do cluster node[:nominatim][:dbcluster] superuser true