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