/[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 2647 - (hide annotations) (download)
Mon Mar 19 21:13:10 2012 UTC (12 years, 1 month ago) by misc
File size: 1728 byte(s)
clean the module to make puppet-lint happy
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     'graphviz',
7     'perl-Template-GD', # needed for graphical_report support
8     'perl-Test-Taint',
9     'perl-JSON-RPC']: }
10 dmorgan 188
11 misc 2647 $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 misc 2647 description => 'Bugzilla database',
16     password => $pgsql_password,
17 misc 626 }
18    
19 dmorgan 188 file { '/etc/bugzilla/localconfig':
20 misc 2647 group => 'apache',
21     mode => '0640',
22     content => template('bugzilla/localconfig'),
23     require => Package['bugzilla'],
24 dmorgan 188 }
25    
26 dmorgan 254
27     file { '/var/lib/bugzilla/params':
28 misc 2647 group => 'apache',
29     mode => '0640',
30     content => template('bugzilla/params'),
31     require => Package['bugzilla'],
32 dmorgan 254 }
33 dmorgan 289
34 misc 2647 apache::webapp_other { 'bugzilla':
35     webapp_file => 'bugzilla/webapp_bugzilla.conf',
36 misc 1049 }
37 dmorgan 289
38 misc 2647 $bugs_vhost = "bugs.$::domain"
39     $vhost_root = '/usr/share/bugzilla/www'
40 misc 1049
41 misc 2647 apache::vhost_redirect_ssl { $bugs_vhost: }
42 misc 1049
43 misc 2647 apache::vhost_base { $bugs_vhost:
44     aliases => { '/bugzilla/' => $vhost_root },
45     use_ssl => true,
46 misc 1049 location => $vhost_root,
47 misc 2647 vhost => $bugs_vhost,
48 dmorgan 289 }
49 misc 1049
50 dmorgan 480 subversion::snapshot { $bugzilla_location:
51 misc 2647 source => 'svn://svn.mageia.org/svn/web/templates/bugzilla/trunk',
52     require => Package['bugzilla'],
53 dmorgan 480 }
54 dmorgan 188
55 misc 2647 file { 'custom':
56     ensure => directory,
57     path => '/usr/share/bugzilla/template/en/custom',
58     group => 'apache',
59     mode => '0640',
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