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