/[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 1049 - (hide annotations) (download)
Sat Feb 12 14:03:33 2011 UTC (13 years, 2 months ago) by misc
File size: 1840 byte(s)
- enable ssl, and rewrite the web config to use the higher level apache
  type we wrote
1 dmorgan 188 class bugzilla {
2    
3 dmorgan 477 $bugzilla_location = "/usr/share/bugzilla/template/en/custom"
4    
5 dmorgan 291 package { 'bugzilla':
6 dmorgan 188 ensure => installed;
7     }
8    
9 dmorgan 649 package { 'perl-Test-Taint':
10     ensure => installed;
11     }
12    
13 dmorgan 1028 package { 'perl-JSON-RPC':
14     ensure => installed;
15     }
16    
17 misc 624 $pgsql_password = extlookup("bugzilla_pgsql",'x')
18     $ldap_password = extlookup("bugzilla_ldap",'x')
19 dmorgan 254
20 misc 626 @@postgresql::user { 'bugs':
21     password => $pgsql_password,
22     }
23    
24     @@postgresql::database { 'bugs':
25     description => "Bugzilla database",
26     user => "bugs",
27     require => Postgresql::User['bugs']
28     }
29    
30 dmorgan 188 file { '/etc/bugzilla/localconfig':
31 dmorgan 254 ensure => present,
32     owner => root,
33 misc 340 group => apache,
34     mode => 640,
35 dmorgan 254 content => template("bugzilla/localconfig")
36 dmorgan 188 }
37    
38 dmorgan 254
39     file { '/var/lib/bugzilla/params':
40     ensure => present,
41     owner => root,
42 misc 340 group => apache,
43     mode => 640,
44 dmorgan 254 content => template("bugzilla/params")
45     }
46 dmorgan 289
47     apache::webapp_other{"bugzilla":
48     webapp_file => "bugzilla/webapp_bugzilla.conf",
49 misc 1049 }
50 dmorgan 289
51 misc 1049 $bugs_vhost = "bugs.$domain"
52     $vhost_root = "/usr/share/bugzilla/www"
53    
54     apache::redirect_ssl { "$bugs_vhost": }
55    
56     apache::vhost_base { "$bugs_vhost":
57     aliases => { "/bugzilla/data" => "$lib_dir/bugzilla",
58     "/bugzilla/" => $vhost_root },
59     use_ssl => true,
60     location => $vhost_root,
61     vhost => $bugs_vhost,
62 dmorgan 289 }
63 misc 1049
64 dmorgan 480 subversion::snapshot { $bugzilla_location:
65     source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk"
66     }
67 dmorgan 188
68 dmorgan 478 file { "custom":
69     path => "/usr/share/bugzilla/template/en/custom",
70     ensure => directory,
71     owner => root,
72     group => apache,
73 dmorgan 480 mode => 640,
74 dmorgan 479 recurse => true,
75     require => Subversion::Snapshot[$bugzilla_location]
76 dmorgan 478 }
77     }

  ViewVC Help
Powered by ViewVC 1.1.30