/[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 1959 - (show annotations) (download)
Thu Aug 18 00:22:15 2011 UTC (12 years, 8 months ago) by misc
File size: 1713 byte(s)
simplify package installation ( since 'installed' is the default )
1 class bugzilla {
2
3 $bugzilla_location = "/usr/share/bugzilla/template/en/custom"
4
5 package { ['bugzilla','graphviz']: }
6
7 package { 'perl-Test-Taint': }
8
9 package { 'perl-JSON-RPC': }
10
11 $pgsql_password = extlookup("bugzilla_pgsql",'x')
12 $ldap_password = extlookup("bugzilla_ldap",'x')
13
14 postgresql::remote_db_and_user { 'bugs':
15 description => "Bugzilla database",
16 password => $pgsql_password,
17 }
18
19 file { '/etc/bugzilla/localconfig':
20 ensure => present,
21 owner => root,
22 group => apache,
23 mode => 640,
24 content => template("bugzilla/localconfig"),
25 require => Package[bugzilla],
26 }
27
28
29 file { '/var/lib/bugzilla/params':
30 ensure => present,
31 owner => root,
32 group => apache,
33 mode => 640,
34 content => template("bugzilla/params"),
35 require => Package[bugzilla],
36 }
37
38 apache::webapp_other{"bugzilla":
39 webapp_file => "bugzilla/webapp_bugzilla.conf",
40 }
41
42 $bugs_vhost = "bugs.$domain"
43 $vhost_root = "/usr/share/bugzilla/www"
44
45 apache::vhost_redirect_ssl { "$bugs_vhost": }
46
47 apache::vhost_base { "$bugs_vhost":
48 aliases => { "/bugzilla/" => $vhost_root },
49 use_ssl => true,
50 location => $vhost_root,
51 vhost => $bugs_vhost,
52 }
53
54 subversion::snapshot { $bugzilla_location:
55 source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk",
56 require => Package[bugzilla],
57 }
58
59 file { "custom":
60 path => "/usr/share/bugzilla/template/en/custom",
61 ensure => directory,
62 owner => root,
63 group => apache,
64 mode => 640,
65 recurse => true,
66 require => Subversion::Snapshot[$bugzilla_location],
67 }
68 }

  ViewVC Help
Powered by ViewVC 1.1.30