/[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 1958 - (show annotations) (download)
Thu Aug 18 00:22:13 2011 UTC (10 years, 2 months ago) by misc
File size: 1809 byte(s)
fix missing comma, causing syntax error on alamut
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 require => Package[bugzilla],
32 }
33
34
35 file { '/var/lib/bugzilla/params':
36 ensure => present,
37 owner => root,
38 group => apache,
39 mode => 640,
40 content => template("bugzilla/params"),
41 require => Package[bugzilla],
42 }
43
44 apache::webapp_other{"bugzilla":
45 webapp_file => "bugzilla/webapp_bugzilla.conf",
46 }
47
48 $bugs_vhost = "bugs.$domain"
49 $vhost_root = "/usr/share/bugzilla/www"
50
51 apache::vhost_redirect_ssl { "$bugs_vhost": }
52
53 apache::vhost_base { "$bugs_vhost":
54 aliases => { "/bugzilla/" => $vhost_root },
55 use_ssl => true,
56 location => $vhost_root,
57 vhost => $bugs_vhost,
58 }
59
60 subversion::snapshot { $bugzilla_location:
61 source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk",
62 require => Package[bugzilla],
63 }
64
65 file { "custom":
66 path => "/usr/share/bugzilla/template/en/custom",
67 ensure => directory,
68 owner => root,
69 group => apache,
70 mode => 640,
71 recurse => true,
72 require => Subversion::Snapshot[$bugzilla_location],
73 }
74 }

  ViewVC Help
Powered by ViewVC 1.1.28