aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-07 02:40:35 +0000
committerMichael Scherer <misc@mageia.org>2010-12-07 02:40:35 +0000
commitc8e7f2f91510d995221c980aeabd3084aaadf253 (patch)
tree01e8eac79b76fa9c51c6854e4b03fc162fe7e972 /modules/postgresql/manifests/init.pp
parent6e54566f8fc05b471ba2d2c07f9d3c083beb6a9e (diff)
downloadpuppet-c8e7f2f91510d995221c980aeabd3084aaadf253.tar
puppet-c8e7f2f91510d995221c980aeabd3084aaadf253.tar.gz
puppet-c8e7f2f91510d995221c980aeabd3084aaadf253.tar.bz2
puppet-c8e7f2f91510d995221c980aeabd3084aaadf253.tar.xz
puppet-c8e7f2f91510d995221c980aeabd3084aaadf253.zip
- add the owner option, to set the user to whom the database will belong
Diffstat (limited to 'modules/postgresql/manifests/init.pp')
-rw-r--r--modules/postgresql/manifests/init.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index 9304fff9..2b426a96 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -84,7 +84,7 @@ class postgresql {
# TODO convert it to a regular type ( so we can later change user and so on )
define database($description="", $user="postgres") {
- exec { "createdb -U postgres $name '$description'":
+ exec { "createdb -O $user -U postgres $name '$description'":
user => root,
unless => "psql -l -U postgres | grep '^$name|'",
}