/[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 3337 - (show annotations) (download)
Sat Sep 21 14:37:15 2013 UTC (6 years ago) by boklm
File size: 2620 byte(s)
bugzilla: add collectstats cron job (#3288)
1 class bugzilla {
2
3 $bugzilla_location = '/usr/share/bugzilla/template/en/custom'
4
5 $extension_location = '/usr/share/bugzilla/extensions'
6
7 package {['bugzilla',
8 'bugzilla-extension-sitemap',
9 'graphviz',
10 'perl-Template-GD', # needed for graphical_report support
11 'perl-Test-Taint',
12 'perl-JSON-RPC']: }
13
14 $pgsql_password = extlookup('bugzilla_pgsql','x')
15 $ldap_password = extlookup('bugzilla_ldap','x')
16
17 postgresql::remote_db_and_user { 'bugs':
18 description => 'Bugzilla database',
19 password => $pgsql_password,
20 }
21
22 file { '/etc/bugzilla/localconfig':
23 group => 'apache',
24 mode => '0640',
25 content => template('bugzilla/localconfig'),
26 require => Package['bugzilla'],
27 }
28
29
30 file { '/var/lib/bugzilla/params':
31 group => 'apache',
32 mode => '0640',
33 content => template('bugzilla/params'),
34 require => Package['bugzilla'],
35 }
36
37 apache::webapp_other { 'bugzilla':
38 webapp_file => 'bugzilla/webapp_bugzilla.conf',
39 }
40
41 $bugs_vhost = "bugs.$::domain"
42 $vhost_root = '/usr/share/bugzilla/www'
43
44 apache::vhost::redirect_ssl { $bugs_vhost: }
45
46 apache::vhost::base { $bugs_vhost:
47 aliases => { '/bugzilla/' => $vhost_root },
48 use_ssl => true,
49 location => $vhost_root,
50 vhost => $bugs_vhost,
51 }
52
53 subversion::snapshot { $bugzilla_location:
54 source => 'svn://svn.mageia.org/svn/web/templates/bugzilla/trunk',
55 require => Package['bugzilla'],
56 }
57
58 file { 'custom':
59 ensure => directory,
60 path => '/usr/share/bugzilla/template/en/custom',
61 group => 'apache',
62 mode => '0640',
63 recurse => true,
64 require => Subversion::Snapshot[$bugzilla_location],
65 }
66
67 subversion::snapshot { $extension_location:
68 source => 'svn://svn.mageia.org/svn/web/templates/bugzilla/extensions',
69 require => Package['bugzilla'],
70 }
71
72 file { 'Mageia':
73 ensure => directory,
74 path => '/usr/share/bugzilla/extensions',
75 group => 'apache',
76 mode => '0640',
77 recurse => true,
78 require => Subversion::Snapshot[$extension_location],
79 }
80
81 file { '/usr/share/bugzilla/www/robots.txt':
82 group => 'apache',
83 mode => '0640',
84 content => template('bugzilla/robots.txt'),
85 require => Package['bugzilla-extension-sitemap'],
86 }
87
88 cron { 'collectstats':
89 command => '/usr/share/bugzilla/bin/collectstats.pl',
90 user => 'apache',
91 hour => 2,
92 minute => 30,
93 }
94 }

  ViewVC Help
Powered by ViewVC 1.1.26