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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2483 - (hide annotations) (download)
Sun Mar 11 22:02:02 2012 UTC (12 years, 1 month ago) by misc
File size: 1686 byte(s)
add support for graphical report, see #4483
1 dmorgan 188 class bugzilla {
2    
3 misc 2217 $bugzilla_location = "/usr/share/bugzilla/template/en/custom"
4 dmorgan 477
5 misc 2482 package { ['bugzilla',
6 misc 2483 'graphviz',
7     'perl-Template-GD', # needed for graphical_report suppo
8 misc 2482 'perl-Test-Taint',
9     'perl-JSON-RPC']: }
10 dmorgan 188
11 misc 624 $pgsql_password = extlookup("bugzilla_pgsql",'x')
12     $ldap_password = extlookup("bugzilla_ldap",'x')
13 dmorgan 254
14 misc 1356 postgresql::remote_db_and_user { 'bugs':
15     description => "Bugzilla database",
16 misc 626 password => $pgsql_password,
17     }
18    
19 dmorgan 188 file { '/etc/bugzilla/localconfig':
20 misc 340 group => apache,
21     mode => 640,
22 misc 1956 content => template("bugzilla/localconfig"),
23     require => Package[bugzilla],
24 dmorgan 188 }
25    
26 dmorgan 254
27     file { '/var/lib/bugzilla/params':
28 misc 340 group => apache,
29     mode => 640,
30 misc 1958 content => template("bugzilla/params"),
31 misc 1956 require => Package[bugzilla],
32 dmorgan 254 }
33 dmorgan 289
34     apache::webapp_other{"bugzilla":
35     webapp_file => "bugzilla/webapp_bugzilla.conf",
36 misc 1049 }
37 dmorgan 289
38 misc 1049 $bugs_vhost = "bugs.$domain"
39     $vhost_root = "/usr/share/bugzilla/www"
40    
41 misc 1050 apache::vhost_redirect_ssl { "$bugs_vhost": }
42 misc 1049
43     apache::vhost_base { "$bugs_vhost":
44 misc 1848 aliases => { "/bugzilla/" => $vhost_root },
45 misc 1049 use_ssl => true,
46     location => $vhost_root,
47     vhost => $bugs_vhost,
48 dmorgan 289 }
49 misc 1049
50 dmorgan 480 subversion::snapshot { $bugzilla_location:
51 misc 1956 source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk",
52     require => Package[bugzilla],
53 dmorgan 480 }
54 dmorgan 188
55 dmorgan 478 file { "custom":
56     path => "/usr/share/bugzilla/template/en/custom",
57     ensure => directory,
58     group => apache,
59 dmorgan 480 mode => 640,
60 dmorgan 479 recurse => true,
61 misc 1958 require => Subversion::Snapshot[$bugzilla_location],
62 dmorgan 478 }
63     }

  ViewVC Help
Powered by ViewVC 1.1.30