aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/bugzilla/manifests/init.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/bugzilla/manifests/init.pp b/modules/bugzilla/manifests/init.pp
index c1388ce7..17c34f7b 100644
--- a/modules/bugzilla/manifests/init.pp
+++ b/modules/bugzilla/manifests/init.pp
@@ -9,6 +9,16 @@ class bugzilla {
$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,