aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-07 02:40:36 +0000
committerMichael Scherer <misc@mageia.org>2010-12-07 02:40:36 +0000
commitf9e1509186962da82f177860d2a6dc78f6f93889 (patch)
tree8783d697a5323fd1c2ff246b22e09186e3e1c7c9 /modules/postgresql
parentc8e7f2f91510d995221c980aeabd3084aaadf253 (diff)
downloadpuppet-f9e1509186962da82f177860d2a6dc78f6f93889.tar
puppet-f9e1509186962da82f177860d2a6dc78f6f93889.tar.gz
puppet-f9e1509186962da82f177860d2a6dc78f6f93889.tar.bz2
puppet-f9e1509186962da82f177860d2a6dc78f6f93889.tar.xz
puppet-f9e1509186962da82f177860d2a6dc78f6f93889.zip
- add options to remove formatting, so puppet do not try to recreate
the db each time
Diffstat (limited to 'modules/postgresql')
-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 2b426a96..9a1e9172 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -86,7 +86,7 @@ class postgresql {
define database($description="", $user="postgres") {
exec { "createdb -O $user -U postgres $name '$description'":
user => root,
- unless => "psql -l -U postgres | grep '^$name|'",
+ unless => "psql -A -t -U postgres -l | grep '^$name|'",
}
}