aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bugzilla
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-15 12:24:48 +0000
committerMichael Scherer <misc@mageia.org>2010-12-15 12:24:48 +0000
commit34ab35538961b21bf605745493cb0036c3996968 (patch)
treefd135e49ddbc3e07f43f289b5624e37cd8767922 /modules/bugzilla
parentc0440373d12e164ac12e8f5a50c4b7a0d8d046a2 (diff)
downloadpuppet-34ab35538961b21bf605745493cb0036c3996968.tar
puppet-34ab35538961b21bf605745493cb0036c3996968.tar.gz
puppet-34ab35538961b21bf605745493cb0036c3996968.tar.bz2
puppet-34ab35538961b21bf605745493cb0036c3996968.tar.xz
puppet-34ab35538961b21bf605745493cb0036c3996968.zip
- create bugzilla database upon deployment
Diffstat (limited to 'modules/bugzilla')
-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,