[Mageia-sysadm] [626] - create bugzilla database upon deployment

root at mageia.org root at mageia.org
Wed Dec 15 13:24:49 CET 2010


Revision: 626
Author:   misc
Date:     2010-12-15 13:24:48 +0100 (Wed, 15 Dec 2010)
Log Message:
-----------
- create bugzilla database upon deployment

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

Modified: puppet/modules/bugzilla/manifests/init.pp
===================================================================
--- puppet/modules/bugzilla/manifests/init.pp	2010-12-15 12:24:47 UTC (rev 625)
+++ puppet/modules/bugzilla/manifests/init.pp	2010-12-15 12:24:48 UTC (rev 626)
@@ -9,6 +9,16 @@
     $pgsql_password = extlookup("bugzilla_pgsql",'x')
     $ldap_password = extlookup("bugzilla_ldap",'x')
 
+    @@postgresql::user { 'bugs':
+        password => $pgsql_password,
+    }
+
+    @@postgresql::database { 'bugs':
+        description => "Bugzilla database",
+        user => "bugs",
+        require => Postgresql::User['bugs']
+    }
+
     file { '/etc/bugzilla/localconfig':
       ensure => present,
       owner => root,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101215/2afa4f36/attachment-0001.html>


More information about the Mageia-sysadm mailing list