diff --git a/manifests/server/database.pp b/manifests/server/database.pp index 48cd44103b..379a9cdddc 100644 --- a/manifests/server/database.pp +++ b/manifests/server/database.pp @@ -52,7 +52,6 @@ undef => '', default => "LC_COLLATE = '${locale}' LC_CTYPE = '${locale}'", } - $public_revoke_privilege = 'CONNECT' $template_option = $template ? { undef => '', @@ -75,12 +74,6 @@ require => Postgresql::Server::Instance::Service[$instance], } - # This will prevent users from connecting to the database unless they've been - # granted privileges. - ~> postgresql_psql { "REVOKE ${public_revoke_privilege} ON DATABASE \"${dbname}\" FROM public": - refreshonly => true, - } - Postgresql_psql["CREATE DATABASE \"${dbname}\""] -> postgresql_psql { "UPDATE pg_database SET datistemplate = ${istemplate} WHERE datname = '${dbname}'": unless => "SELECT 1 FROM pg_database WHERE datname = '${dbname}' AND datistemplate = ${istemplate}",