File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 5252 undef => ' ' ,
5353 default => " LC_COLLATE = '${locale} ' LC_CTYPE = '${locale} '" ,
5454 }
55- $public_revoke_privilege = ' CONNECT'
5655
5756 $template_option = $template ? {
5857 undef => ' ' ,
7574 require => Postgresql::Server::Instance::Service[$instance ],
7675 }
7776
78- # This will prevent users from connecting to the database unless they've been
79- # granted privileges.
80- ~> postgresql_psql { " REVOKE ${public_revoke_privilege} ON DATABASE \" ${dbname} \" FROM public" :
81- refreshonly => true ,
82- }
83-
8477 Postgresql_psql[" CREATE DATABASE \" ${dbname} \" " ]
8578 -> postgresql_psql { " UPDATE pg_database SET datistemplate = ${istemplate} WHERE datname = '${dbname} '" :
8679 unless => " SELECT 1 FROM pg_database WHERE datname = '${dbname} ' AND datistemplate = ${istemplate} " ,
You can’t perform that action at this time.
0 commit comments