[Mageia-sysadm] [536] - add options to remove formatting, so puppet do not try to recreate

root at mageia.org root at mageia.org
Tue Dec 7 03:40:36 CET 2010


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:
--------------
    puppet/modules/postgresql/manifests/init.pp

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|'",
         }
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101207/b887022f/attachment.html>


More information about the Mageia-sysadm mailing list