/[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 2789 - (hide annotations) (download)
Fri Jul 6 15:44:16 2012 UTC (9 years, 10 months ago) by boklm
File size: 1985 byte(s)
add bugzilla-extension-sitemap in packages list
1 dmorgan 188 class bugzilla {
2    
3 misc 2647 $bugzilla_location = '/usr/share/bugzilla/template/en/custom'
4 dmorgan 477
5 misc 2647 package {['bugzilla',
6 boklm 2789 'bugzilla-extension-sitemap',
7 misc 2647 'graphviz',
8     'perl-Template-GD', # needed for graphical_report support
9     'perl-Test-Taint',
10     'perl-JSON-RPC']: }
11 dmorgan 188
12 misc 2647 $pgsql_password = extlookup('bugzilla_pgsql','x')
13     $ldap_password = extlookup('bugzilla_ldap','x')
14 dmorgan 254
15 misc 1356 postgresql::remote_db_and_user { 'bugs':
16 misc 2647 description => 'Bugzilla database',
17     password => $pgsql_password,
18 misc 626 }
19    
20 dmorgan 188 file { '/etc/bugzilla/localconfig':
21 misc 2647 group => 'apache',
22     mode => '0640',
23     content => template('bugzilla/localconfig'),
24     require => Package['bugzilla'],
25 dmorgan 188 }
26    
27 dmorgan 254
28     file { '/var/lib/bugzilla/params':
29 misc 2647 group => 'apache',
30     mode => '0640',
31     content => template('bugzilla/params'),
32     require => Package['bugzilla'],
33 dmorgan 254 }
34 dmorgan 289
35 misc 2647 apache::webapp_other { 'bugzilla':
36     webapp_file => 'bugzilla/webapp_bugzilla.conf',
37 misc 1049 }
38 dmorgan 289
39 misc 2647 $bugs_vhost = "bugs.$::domain"
40     $vhost_root = '/usr/share/bugzilla/www'
41 misc 1049
42 misc 2691 apache::vhost::redirect_ssl { $bugs_vhost: }
43 misc 1049
44 misc 2691 apache::vhost::base { $bugs_vhost:
45 misc 2647 aliases => { '/bugzilla/' => $vhost_root },
46     use_ssl => true,
47 misc 1049 location => $vhost_root,
48 misc 2647 vhost => $bugs_vhost,
49 dmorgan 289 }
50 misc 1049
51 dmorgan 480 subversion::snapshot { $bugzilla_location:
52 misc 2647 source => 'svn://svn.mageia.org/svn/web/templates/bugzilla/trunk',
53     require => Package['bugzilla'],
54 dmorgan 480 }
55 dmorgan 188
56 misc 2647 file { 'custom':
57     ensure => directory,
58     path => '/usr/share/bugzilla/template/en/custom',
59     group => 'apache',
60     mode => '0640',
61 dmorgan 479 recurse => true,
62 misc 1958 require => Subversion::Snapshot[$bugzilla_location],
63 dmorgan 478 }
64 dmorgan 2783
65     file { '/usr/share/bugzilla/www/robots.txt':
66     group => 'apache',
67     mode => '0640',
68     content => template('bugzilla/robots.txt'),
69     require => Package['bugzilla-extension-sitemap'],
70     }
71 dmorgan 478 }

  ViewVC Help
Powered by ViewVC 1.1.28