/[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 1356 - (show annotations) (download)
Tue Mar 22 17:43:44 2011 UTC (13 years, 1 month ago) by misc
File size: 1746 byte(s)
use the new type for user and database declaration ( will be used later for pg access list )
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::remote_db_and_user { 'bugs':
21 description => "Bugzilla database",
22 password => $pgsql_password,
23 }
24
25 file { '/etc/bugzilla/localconfig':
26 ensure => present,
27 owner => root,
28 group => apache,
29 mode => 640,
30 content => template("bugzilla/localconfig")
31 }
32
33
34 file { '/var/lib/bugzilla/params':
35 ensure => present,
36 owner => root,
37 group => apache,
38 mode => 640,
39 content => template("bugzilla/params")
40 }
41
42 apache::webapp_other{"bugzilla":
43 webapp_file => "bugzilla/webapp_bugzilla.conf",
44 }
45
46 $bugs_vhost = "bugs.$domain"
47 $vhost_root = "/usr/share/bugzilla/www"
48
49 apache::vhost_redirect_ssl { "$bugs_vhost": }
50
51 apache::vhost_base { "$bugs_vhost":
52 aliases => { "/bugzilla/data" => "$lib_dir/bugzilla",
53 "/bugzilla/" => $vhost_root },
54 use_ssl => true,
55 location => $vhost_root,
56 vhost => $bugs_vhost,
57 }
58
59 subversion::snapshot { $bugzilla_location:
60 source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk"
61 }
62
63 file { "custom":
64 path => "/usr/share/bugzilla/template/en/custom",
65 ensure => directory,
66 owner => root,
67 group => apache,
68 mode => 640,
69 recurse => true,
70 require => Subversion::Snapshot[$bugzilla_location]
71 }
72 }

  ViewVC Help
Powered by ViewVC 1.1.30