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 52
52
undef => ' ' ,
53
53
default => " LC_COLLATE = '${locale} ' LC_CTYPE = '${locale} '" ,
54
54
}
55
- $public_revoke_privilege = ' CONNECT'
56
55
57
56
$template_option = $template ? {
58
57
undef => ' ' ,
75
74
require => Postgresql::Server::Instance::Service[$instance ],
76
75
}
77
76
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
-
84
77
Postgresql_psql[" CREATE DATABASE \" ${dbname} \" " ]
85
78
-> postgresql_psql { " UPDATE pg_database SET datistemplate = ${istemplate} WHERE datname = '${dbname} '" :
86
79
unless => " SELECT 1 FROM pg_database WHERE datname = '${dbname} ' AND datistemplate = ${istemplate} " ,
You can’t perform that action at this time.
0 commit comments