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

  ViewVC Help
Powered by ViewVC 1.1.30