/[adm]/puppet/modules/bugzilla/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/bugzilla/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2217 - (show annotations) (download)
Sun Jan 8 22:24:41 2012 UTC (12 years, 3 months ago) by misc
File size: 1567 byte(s)
some cleaning of bugzilla module
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 }

  ViewVC Help
Powered by ViewVC 1.1.30