1 |
class bugzilla { |
2 |
|
3 |
$bugzilla_location = "/usr/share/bugzilla/template/en/custom" |
4 |
|
5 |
package { 'bugzilla': |
6 |
ensure => installed; |
7 |
} |
8 |
|
9 |
$pgsql_password = extlookup("bugzilla_pgsql",'x') |
10 |
$ldap_password = extlookup("bugzilla_ldap",'x') |
11 |
|
12 |
file { '/etc/bugzilla/localconfig': |
13 |
ensure => present, |
14 |
owner => root, |
15 |
group => apache, |
16 |
mode => 640, |
17 |
content => template("bugzilla/localconfig") |
18 |
} |
19 |
|
20 |
|
21 |
file { '/var/lib/bugzilla/params': |
22 |
ensure => present, |
23 |
owner => root, |
24 |
group => apache, |
25 |
mode => 640, |
26 |
content => template("bugzilla/params") |
27 |
} |
28 |
|
29 |
apache::webapp_other{"bugzilla": |
30 |
webapp_file => "bugzilla/webapp_bugzilla.conf", |
31 |
} |
32 |
|
33 |
apache::vhost_other_app { "bugs.$domain": |
34 |
vhost_file => "bugzilla/vhost_bugs.conf", |
35 |
} |
36 |
subversion::snapshot { $bugzilla_location: |
37 |
source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk" |
38 |
} |
39 |
|
40 |
file { "custom": |
41 |
path => "/usr/share/bugzilla/template/en/custom", |
42 |
ensure => directory, |
43 |
owner => root, |
44 |
group => apache, |
45 |
mode => 640, |
46 |
recurse => true, |
47 |
require => Subversion::Snapshot[$bugzilla_location] |
48 |
} |
49 |
} |