1 |
dmorgan |
188 |
class bugzilla { |
2 |
|
|
|
3 |
misc |
2647 |
$bugzilla_location = '/usr/share/bugzilla/template/en/custom' |
4 |
dmorgan |
477 |
|
5 |
dmorgan |
3024 |
$extension_location = '/usr/share/bugzilla/extensions' |
6 |
|
|
|
7 |
misc |
2647 |
package {['bugzilla', |
8 |
boklm |
2789 |
'bugzilla-extension-sitemap', |
9 |
misc |
2647 |
'graphviz', |
10 |
|
|
'perl-Template-GD', # needed for graphical_report support |
11 |
|
|
'perl-Test-Taint', |
12 |
|
|
'perl-JSON-RPC']: } |
13 |
dmorgan |
188 |
|
14 |
misc |
2647 |
$pgsql_password = extlookup('bugzilla_pgsql','x') |
15 |
|
|
$ldap_password = extlookup('bugzilla_ldap','x') |
16 |
dmorgan |
254 |
|
17 |
misc |
1356 |
postgresql::remote_db_and_user { 'bugs': |
18 |
misc |
2647 |
description => 'Bugzilla database', |
19 |
|
|
password => $pgsql_password, |
20 |
misc |
626 |
} |
21 |
|
|
|
22 |
dmorgan |
188 |
file { '/etc/bugzilla/localconfig': |
23 |
misc |
2647 |
group => 'apache', |
24 |
|
|
mode => '0640', |
25 |
|
|
content => template('bugzilla/localconfig'), |
26 |
|
|
require => Package['bugzilla'], |
27 |
dmorgan |
188 |
} |
28 |
|
|
|
29 |
dmorgan |
254 |
|
30 |
|
|
file { '/var/lib/bugzilla/params': |
31 |
misc |
2647 |
group => 'apache', |
32 |
|
|
mode => '0640', |
33 |
|
|
content => template('bugzilla/params'), |
34 |
|
|
require => Package['bugzilla'], |
35 |
dmorgan |
254 |
} |
36 |
dmorgan |
289 |
|
37 |
misc |
2647 |
apache::webapp_other { 'bugzilla': |
38 |
|
|
webapp_file => 'bugzilla/webapp_bugzilla.conf', |
39 |
misc |
1049 |
} |
40 |
dmorgan |
289 |
|
41 |
misc |
2647 |
$bugs_vhost = "bugs.$::domain" |
42 |
|
|
$vhost_root = '/usr/share/bugzilla/www' |
43 |
misc |
1049 |
|
44 |
misc |
2691 |
apache::vhost::redirect_ssl { $bugs_vhost: } |
45 |
misc |
1049 |
|
46 |
misc |
2691 |
apache::vhost::base { $bugs_vhost: |
47 |
misc |
2647 |
aliases => { '/bugzilla/' => $vhost_root }, |
48 |
|
|
use_ssl => true, |
49 |
misc |
1049 |
location => $vhost_root, |
50 |
misc |
2647 |
vhost => $bugs_vhost, |
51 |
dmorgan |
289 |
} |
52 |
misc |
1049 |
|
53 |
dmorgan |
480 |
subversion::snapshot { $bugzilla_location: |
54 |
dmorgan |
3005 |
source => 'svn://svn.mageia.org/svn/web/templates/bugzilla/trunk', |
55 |
misc |
2647 |
require => Package['bugzilla'], |
56 |
dmorgan |
480 |
} |
57 |
dmorgan |
188 |
|
58 |
misc |
2647 |
file { 'custom': |
59 |
|
|
ensure => directory, |
60 |
|
|
path => '/usr/share/bugzilla/template/en/custom', |
61 |
|
|
group => 'apache', |
62 |
|
|
mode => '0640', |
63 |
dmorgan |
479 |
recurse => true, |
64 |
misc |
1958 |
require => Subversion::Snapshot[$bugzilla_location], |
65 |
dmorgan |
478 |
} |
66 |
dmorgan |
2783 |
|
67 |
dmorgan |
3024 |
subversion::snapshot { $extension_location: |
68 |
|
|
source => 'svn://svn.mageia.org/svn/web/templates/bugzilla/extensions', |
69 |
|
|
require => Package['bugzilla'], |
70 |
|
|
} |
71 |
|
|
|
72 |
|
|
file { 'Mageia': |
73 |
|
|
ensure => directory, |
74 |
|
|
path => '/usr/share/bugzilla/extensions', |
75 |
|
|
group => 'apache', |
76 |
|
|
mode => '0640', |
77 |
|
|
recurse => true, |
78 |
|
|
require => Subversion::Snapshot[$extension_location], |
79 |
|
|
} |
80 |
|
|
|
81 |
dmorgan |
2783 |
file { '/usr/share/bugzilla/www/robots.txt': |
82 |
|
|
group => 'apache', |
83 |
|
|
mode => '0640', |
84 |
|
|
content => template('bugzilla/robots.txt'), |
85 |
|
|
require => Package['bugzilla-extension-sitemap'], |
86 |
|
|
} |
87 |
boklm |
3337 |
|
88 |
|
|
cron { 'collectstats': |
89 |
|
|
command => '/usr/share/bugzilla/bin/collectstats.pl', |
90 |
|
|
user => 'apache', |
91 |
|
|
hour => 2, |
92 |
|
|
minute => 30, |
93 |
|
|
} |
94 |
dmorgan |
478 |
} |