1 |
dmorgan |
188 |
class bugzilla { |
2 |
|
|
|
3 |
dmorgan |
477 |
$bugzilla_location = "/usr/share/bugzilla/template/en/custom" |
4 |
|
|
|
5 |
dmorgan |
291 |
package { 'bugzilla': |
6 |
dmorgan |
188 |
ensure => installed; |
7 |
|
|
} |
8 |
|
|
|
9 |
dmorgan |
649 |
package { 'perl-Test-Taint': |
10 |
|
|
ensure => installed; |
11 |
|
|
} |
12 |
|
|
|
13 |
misc |
624 |
$pgsql_password = extlookup("bugzilla_pgsql",'x') |
14 |
|
|
$ldap_password = extlookup("bugzilla_ldap",'x') |
15 |
dmorgan |
254 |
|
16 |
misc |
626 |
@@postgresql::user { 'bugs': |
17 |
|
|
password => $pgsql_password, |
18 |
|
|
} |
19 |
|
|
|
20 |
|
|
@@postgresql::database { 'bugs': |
21 |
|
|
description => "Bugzilla database", |
22 |
|
|
user => "bugs", |
23 |
|
|
require => Postgresql::User['bugs'] |
24 |
|
|
} |
25 |
|
|
|
26 |
dmorgan |
188 |
file { '/etc/bugzilla/localconfig': |
27 |
dmorgan |
254 |
ensure => present, |
28 |
|
|
owner => root, |
29 |
misc |
340 |
group => apache, |
30 |
|
|
mode => 640, |
31 |
dmorgan |
254 |
content => template("bugzilla/localconfig") |
32 |
dmorgan |
188 |
} |
33 |
|
|
|
34 |
dmorgan |
254 |
|
35 |
|
|
file { '/var/lib/bugzilla/params': |
36 |
|
|
ensure => present, |
37 |
|
|
owner => root, |
38 |
misc |
340 |
group => apache, |
39 |
|
|
mode => 640, |
40 |
dmorgan |
254 |
content => template("bugzilla/params") |
41 |
|
|
} |
42 |
dmorgan |
289 |
|
43 |
|
|
apache::webapp_other{"bugzilla": |
44 |
|
|
webapp_file => "bugzilla/webapp_bugzilla.conf", |
45 |
|
|
} |
46 |
|
|
|
47 |
|
|
apache::vhost_other_app { "bugs.$domain": |
48 |
misc |
340 |
vhost_file => "bugzilla/vhost_bugs.conf", |
49 |
dmorgan |
289 |
} |
50 |
dmorgan |
480 |
subversion::snapshot { $bugzilla_location: |
51 |
|
|
source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk" |
52 |
|
|
} |
53 |
dmorgan |
188 |
|
54 |
dmorgan |
478 |
file { "custom": |
55 |
|
|
path => "/usr/share/bugzilla/template/en/custom", |
56 |
|
|
ensure => directory, |
57 |
|
|
owner => root, |
58 |
|
|
group => apache, |
59 |
dmorgan |
480 |
mode => 640, |
60 |
dmorgan |
479 |
recurse => true, |
61 |
|
|
require => Subversion::Snapshot[$bugzilla_location] |
62 |
dmorgan |
478 |
} |
63 |
|
|
} |