[Mageia-sysadm] [614] create the database and user in postgresql

root at mageia.org root at mageia.org
Wed Dec 15 02:39:30 CET 2010


Revision: 614
Author:   misc
Date:     2010-12-15 02:39:30 +0100 (Wed, 15 Dec 2010)
Log Message:
-----------
create the database and user in postgresql

Modified Paths:
--------------
    puppet/modules/transifex/manifests/init.pp

Modified: puppet/modules/transifex/manifests/init.pp
===================================================================
--- puppet/modules/transifex/manifests/init.pp	2010-12-15 01:39:28 UTC (rev 613)
+++ puppet/modules/transifex/manifests/init.pp	2010-12-15 01:39:30 UTC (rev 614)
@@ -4,6 +4,17 @@
   }
  
   $password = extlookup("transifex_password",'x')
+
+  @@postgresql::user { 'transifex':
+        password => $password,
+  }
+
+  @@postgresql::database { 'transifex':
+        description => "Transifex database",
+        user => "transifex",
+        require => Postgresql::User['transifex']
+  }
+
   file { "20-engines.conf":
     path => "/etc/transifex/20-engines.conf",
     ensure => present,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101215/4f4e953d/attachment.html>


More information about the Mageia-sysadm mailing list