We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bc584e + 33c56e9 commit dcac94aCopy full SHA for dcac94a
manifests/database.pp
@@ -21,6 +21,7 @@
21
22
define postgresql::database(
23
$dbname = $title,
24
+ $owner = $postgresql::params::user,
25
$tablespace = undef,
26
$charset = $postgresql::params::charset,
27
$locale = $postgresql::params::locale
@@ -47,7 +48,7 @@
47
48
$public_revoke_privilege = 'ALL'
49
}
50
- $createdb_command_tmp = "${postgresql::params::createdb_path} --template=template0 --encoding '${charset}' ${locale_option} '${dbname}'"
51
+ $createdb_command_tmp = "${postgresql::params::createdb_path} --owner='${owner}' --template=template0 --encoding '${charset}' ${locale_option} '${dbname}'"
52
53
if($tablespace == undef) {
54
$createdb_command = $createdb_command_tmp
0 commit comments