1 |
dmorgan |
188 |
class bugzilla { |
2 |
|
|
|
3 |
misc |
2217 |
$bugzilla_location = "/usr/share/bugzilla/template/en/custom" |
4 |
dmorgan |
477 |
|
5 |
misc |
2217 |
package { ['bugzilla','graphviz', 'perl-Test-Taint', 'perl-JSON-RPC']: } |
6 |
dmorgan |
188 |
|
7 |
misc |
624 |
$pgsql_password = extlookup("bugzilla_pgsql",'x') |
8 |
|
|
$ldap_password = extlookup("bugzilla_ldap",'x') |
9 |
dmorgan |
254 |
|
10 |
misc |
1356 |
postgresql::remote_db_and_user { 'bugs': |
11 |
|
|
description => "Bugzilla database", |
12 |
misc |
626 |
password => $pgsql_password, |
13 |
|
|
} |
14 |
|
|
|
15 |
dmorgan |
188 |
file { '/etc/bugzilla/localconfig': |
16 |
misc |
340 |
group => apache, |
17 |
|
|
mode => 640, |
18 |
misc |
1956 |
content => template("bugzilla/localconfig"), |
19 |
|
|
require => Package[bugzilla], |
20 |
dmorgan |
188 |
} |
21 |
|
|
|
22 |
dmorgan |
254 |
|
23 |
|
|
file { '/var/lib/bugzilla/params': |
24 |
misc |
340 |
group => apache, |
25 |
|
|
mode => 640, |
26 |
misc |
1958 |
content => template("bugzilla/params"), |
27 |
misc |
1956 |
require => Package[bugzilla], |
28 |
dmorgan |
254 |
} |
29 |
dmorgan |
289 |
|
30 |
|
|
apache::webapp_other{"bugzilla": |
31 |
|
|
webapp_file => "bugzilla/webapp_bugzilla.conf", |
32 |
misc |
1049 |
} |
33 |
dmorgan |
289 |
|
34 |
misc |
1049 |
$bugs_vhost = "bugs.$domain" |
35 |
|
|
$vhost_root = "/usr/share/bugzilla/www" |
36 |
|
|
|
37 |
misc |
1050 |
apache::vhost_redirect_ssl { "$bugs_vhost": } |
38 |
misc |
1049 |
|
39 |
|
|
apache::vhost_base { "$bugs_vhost": |
40 |
misc |
1848 |
aliases => { "/bugzilla/" => $vhost_root }, |
41 |
misc |
1049 |
use_ssl => true, |
42 |
|
|
location => $vhost_root, |
43 |
|
|
vhost => $bugs_vhost, |
44 |
dmorgan |
289 |
} |
45 |
misc |
1049 |
|
46 |
dmorgan |
480 |
subversion::snapshot { $bugzilla_location: |
47 |
misc |
1956 |
source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk", |
48 |
|
|
require => Package[bugzilla], |
49 |
dmorgan |
480 |
} |
50 |
dmorgan |
188 |
|
51 |
dmorgan |
478 |
file { "custom": |
52 |
|
|
path => "/usr/share/bugzilla/template/en/custom", |
53 |
|
|
ensure => directory, |
54 |
|
|
group => apache, |
55 |
dmorgan |
480 |
mode => 640, |
56 |
dmorgan |
479 |
recurse => true, |
57 |
misc |
1958 |
require => Subversion::Snapshot[$bugzilla_location], |
58 |
dmorgan |
478 |
} |
59 |
|
|
} |