OLD | NEW |
1 class trac( | 1 class trac( |
2 $domain, | 2 $domain, |
3 $certificate, | 3 $certificate, |
4 $private_key, | 4 $private_key, |
5 $fcgi_config_dir = '/etc/nginx/trac.d', | 5 $fcgi_config_dir = '/etc/nginx/trac.d', |
6 $is_default = false) inherits private::trac { | 6 $is_default = false) inherits private::trac { |
7 | 7 |
8 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: | 8 package {['python-mysqldb', 'subversion', 'tofrodos', 'graphviz']: |
9 ensure => present | 9 ensure => present |
10 } | 10 } |
11 | 11 |
12 include stdlib | 12 include stdlib |
13 include nginx | 13 include nginx |
14 include spawn_fcgi | 14 include spawn_fcgi |
15 | 15 |
16 file {$fcgi_config_dir: | 16 file {$fcgi_config_dir: |
17 ensure => directory, | 17 ensure => directory, |
18 owner => 'root', | 18 owner => 'root', |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 # Daily restart required for log rotation of all instances at once | 290 # Daily restart required for log rotation of all instances at once |
291 cron {'restart-trac-daily': | 291 cron {'restart-trac-daily': |
292 command => '/usr/sbin/service spawn-fcgi restart >/tmp/spawn-fcgi-restart.lo
g', | 292 command => '/usr/sbin/service spawn-fcgi restart >/tmp/spawn-fcgi-restart.lo
g', |
293 environment => hiera('cron::environment', []), | 293 environment => hiera('cron::environment', []), |
294 hour => '1', | 294 hour => '1', |
295 minute => '0', | 295 minute => '0', |
296 user => 'root', | 296 user => 'root', |
297 } | 297 } |
298 } | 298 } |
299 | 299 |
OLD | NEW |