From 34ab35538961b21bf605745493cb0036c3996968 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 15 Dec 2010 12:24:48 +0000 Subject: - create bugzilla database upon deployment --- modules/bugzilla/manifests/init.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/bugzilla') 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, -- cgit v1.2.1