/[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 1851 - (show annotations) (download)
Mon Jul 18 11:16:57 2011 UTC (12 years, 9 months ago) by misc
File size: 1697 byte(s)
install graphiviz, needed to have dot
1 class bugzilla {
2
3 $bugzilla_location = "/usr/share/bugzilla/template/en/custom"
4
5 package { ['bugzilla','graphviz']:
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/" => $vhost_root },
53 use_ssl => true,
54 location => $vhost_root,
55 vhost => $bugs_vhost,
56 }
57
58 subversion::snapshot { $bugzilla_location:
59 source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk"
60 }
61
62 file { "custom":
63 path => "/usr/share/bugzilla/template/en/custom",
64 ensure => directory,
65 owner => root,
66 group => apache,
67 mode => 640,
68 recurse => true,
69 require => Subversion::Snapshot[$bugzilla_location]
70 }
71 }

  ViewVC Help
Powered by ViewVC 1.1.30