Revision
536
Author
misc
Date
2010-12-07 03:40:36 +0100 (Tue, 07 Dec 2010)

Log Message

- add options to remove formatting, so puppet do not try to recreate
the db each time

Modified Paths

Modified: puppet/modules/postgresql/manifests/init.pp
===================================================================
--- puppet/modules/postgresql/manifests/init.pp	2010-12-07 02:40:35 UTC (rev 535)
+++ puppet/modules/postgresql/manifests/init.pp	2010-12-07 02:40:36 UTC (rev 536)
@@ -86,7 +86,7 @@
     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|'",
         }
     }