X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/570e56d576e5522bde6e3ea1a432ee2d560897f8..f3d8422f1c3d8c1e8cf3cc04d9982b8cfb8878c4:/cookbooks/nominatim/recipes/version4.rb diff --git a/cookbooks/nominatim/recipes/version4.rb b/cookbooks/nominatim/recipes/version4.rb index 19e3d1aa9..7b218d951 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 @@ -277,7 +285,7 @@ frontends = search(:node, "recipes:web\\:\\:frontend").sort_by(&:name) nginx_site "nominatim" do template "nginx.erb" - directory build_directory + directory project_directory variables :pools => node[:nominatim][:fpm_pools], :frontends => frontends, :confdir => "#{basedir}/etc",