/[adm]/puppet/modules/bugzilla/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/bugzilla/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 626 - (show annotations) (download)
Wed Dec 15 12:24:48 2010 UTC (13 years, 4 months ago) by misc
File size: 1435 byte(s)
- create bugzilla database upon deployment
1 class bugzilla {
2
3 $bugzilla_location = "/usr/share/bugzilla/template/en/custom"
4
5 package { 'bugzilla':
6 ensure => installed;
7 }
8
9 $pgsql_password = extlookup("bugzilla_pgsql",'x')
10 $ldap_password = extlookup("bugzilla_ldap",'x')
11
12 @@postgresql::user { 'bugs':
13 password => $pgsql_password,
14 }
15
16 @@postgresql::database { 'bugs':
17 description => "Bugzilla database",
18 user => "bugs",
19 require => Postgresql::User['bugs']
20 }
21
22 file { '/etc/bugzilla/localconfig':
23 ensure => present,
24 owner => root,
25 group => apache,
26 mode => 640,
27 content => template("bugzilla/localconfig")
28 }
29
30
31 file { '/var/lib/bugzilla/params':
32 ensure => present,
33 owner => root,
34 group => apache,
35 mode => 640,
36 content => template("bugzilla/params")
37 }
38
39 apache::webapp_other{"bugzilla":
40 webapp_file => "bugzilla/webapp_bugzilla.conf",
41 }
42
43 apache::vhost_other_app { "bugs.$domain":
44 vhost_file => "bugzilla/vhost_bugs.conf",
45 }
46 subversion::snapshot { $bugzilla_location:
47 source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk"
48 }
49
50 file { "custom":
51 path => "/usr/share/bugzilla/template/en/custom",
52 ensure => directory,
53 owner => root,
54 group => apache,
55 mode => 640,
56 recurse => true,
57 require => Subversion::Snapshot[$bugzilla_location]
58 }
59 }

  ViewVC Help
Powered by ViewVC 1.1.30