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

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,