/[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 1959 - (hide 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 dmorgan 188 class bugzilla {
2    
3 dmorgan 477 $bugzilla_location = "/usr/share/bugzilla/template/en/custom"
4    
5 misc 1959 package { ['bugzilla','graphviz']: }
6 dmorgan 188
7 misc 1959 package { 'perl-Test-Taint': }
8 dmorgan 649
9 misc 1959 package { 'perl-JSON-RPC': }
10 dmorgan 1028
11 misc 624 $pgsql_password = extlookup("bugzilla_pgsql",'x')
12     $ldap_password = extlookup("bugzilla_ldap",'x')
13 dmorgan 254
14 misc 1356 postgresql::remote_db_and_user { 'bugs':
15     description => "Bugzilla database",
16 misc 626 password => $pgsql_password,
17     }
18    
19 dmorgan 188 file { '/etc/bugzilla/localconfig':
20 dmorgan 254 ensure => present,
21     owner => root,
22 misc 340 group => apache,
23     mode => 640,
24 misc 1956 content => template("bugzilla/localconfig"),
25     require => Package[bugzilla],
26 dmorgan 188 }
27    
28 dmorgan 254
29     file { '/var/lib/bugzilla/params':
30     ensure => present,
31     owner => root,
32 misc 340 group => apache,
33     mode => 640,
34 misc 1958 content => template("bugzilla/params"),
35 misc 1956 require => Package[bugzilla],
36 dmorgan 254 }
37 dmorgan 289
38     apache::webapp_other{"bugzilla":
39     webapp_file => "bugzilla/webapp_bugzilla.conf",
40 misc 1049 }
41 dmorgan 289
42 misc 1049 $bugs_vhost = "bugs.$domain"
43     $vhost_root = "/usr/share/bugzilla/www"
44    
45 misc 1050 apache::vhost_redirect_ssl { "$bugs_vhost": }
46 misc 1049
47     apache::vhost_base { "$bugs_vhost":
48 misc 1848 aliases => { "/bugzilla/" => $vhost_root },
49 misc 1049 use_ssl => true,
50     location => $vhost_root,
51     vhost => $bugs_vhost,
52 dmorgan 289 }
53 misc 1049
54 dmorgan 480 subversion::snapshot { $bugzilla_location:
55 misc 1956 source => "svn://svn.mageia.org/svn/web/templates/bugzilla/trunk",
56     require => Package[bugzilla],
57 dmorgan 480 }
58 dmorgan 188
59 dmorgan 478 file { "custom":
60     path => "/usr/share/bugzilla/template/en/custom",
61     ensure => directory,
62     owner => root,
63     group => apache,
64 dmorgan 480 mode => 640,
65 dmorgan 479 recurse => true,
66 misc 1958 require => Subversion::Snapshot[$bugzilla_location],
67 dmorgan 478 }
68     }

  ViewVC Help
Powered by ViewVC 1.1.30