/[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 1050 - (show annotations) (download)
Sat Feb 12 14:08:22 2011 UTC (13 years, 2 months ago) by misc
File size: 1846 byte(s)
- fix wrong type for ssl redirection
1 class bugzilla {
2
3 $bugzilla_location = "/usr/share/bugzilla/template/en/custom"
4
5 package { 'bugzilla':
6 ensure => installed;
7 }
8
9 package { 'perl-Test-Taint':
10 ensure => installed;
11 }
12
13 package { 'perl-JSON-RPC':
14 ensure => installed;
15 }
16
17 $pgsql_password = extlookup("bugzilla_pgsql",'x')
18 $ldap_password = extlookup("bugzilla_ldap",'x')
19
20 @@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 file { '/etc/bugzilla/localconfig':
31 ensure => present,
32 owner => root,
33 group => apache,
34 mode => 640,
35 content => template("bugzilla/localconfig")
36 }
37
38
39 file { '/var/lib/bugzilla/params':
40 ensure => present,
41 owner => root,
42 group => apache,
43 mode => 640,
44 content => template("bugzilla/params")
45 }
46
47 apache::webapp_other{"bugzilla":
48 webapp_file => "bugzilla/webapp_bugzilla.conf",
49 }
50
51 $bugs_vhost = "bugs.$domain"
52 $vhost_root = "/usr/share/bugzilla/www"
53
54 apache::vhost_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 }
63
64 subversion::snapshot { $bugzilla_location:
65 source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk"
66 }
67
68 file { "custom":
69 path => "/usr/share/bugzilla/template/en/custom",
70 ensure => directory,
71 owner => root,
72 group => apache,
73 mode => 640,
74 recurse => true,
75 require => Subversion::Snapshot[$bugzilla_location]
76 }
77 }

  ViewVC Help
Powered by ViewVC 1.1.30