diff options
author | Michael Scherer <misc@mageia.org> | 2010-12-07 02:40:35 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-12-07 02:40:35 +0000 |
commit | c8e7f2f91510d995221c980aeabd3084aaadf253 (patch) | |
tree | 01e8eac79b76fa9c51c6854e4b03fc162fe7e972 | |
parent | 6e54566f8fc05b471ba2d2c07f9d3c083beb6a9e (diff) | |
download | puppet-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
-rw-r--r-- | modules/postgresql/manifests/init.pp | 2 |
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|'", } |