1 |
class bugzilla { |
2 |
|
3 |
package { 'bugzilla': |
4 |
ensure => installed; |
5 |
} |
6 |
|
7 |
$password = extlookup("bugzilla_password",'x') |
8 |
$passwordLdap = extlookup("bugzilla_ldap",'x') |
9 |
|
10 |
file { '/etc/bugzilla/localconfig': |
11 |
ensure => present, |
12 |
owner => root, |
13 |
group => apache, |
14 |
mode => 640, |
15 |
content => template("bugzilla/localconfig") |
16 |
} |
17 |
|
18 |
|
19 |
file { '/var/lib/bugzilla/params': |
20 |
ensure => present, |
21 |
owner => root, |
22 |
group => apache, |
23 |
mode => 640, |
24 |
content => template("bugzilla/params") |
25 |
} |
26 |
|
27 |
include apache::mod_fcgid |
28 |
apache::webapp_other{"bugzilla": |
29 |
webapp_file => "bugzilla/webapp_bugzilla.conf", |
30 |
} |
31 |
|
32 |
apache::vhost_other_app { "bugs.$domain": |
33 |
vhost_file => "bugzilla/vhost_bugs.conf", |
34 |
} |
35 |
} |
36 |
|