Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/trac/manifests/init.pp

Issue 29329593: Issue 2772 - Establish log rotation for Trac logs (Closed)
Patch Set: Created Nov. 2, 2015, 11:31 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/trac/templates/logrotate.erb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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','python-pip','subversion', 'tofrodos', 'graphviz']:
9 ensure => present 9 ensure => present
10 } 10 }
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 spawn-fcgi::pool {"tracd_${name}": 235 spawn-fcgi::pool {"tracd_${name}":
236 ensure => present, 236 ensure => present,
237 fcgi_app => "/home/trac/htdocs-$name/cgi-bin/trac.fcgi", 237 fcgi_app => "/home/trac/htdocs-$name/cgi-bin/trac.fcgi",
238 socket => "/tmp/${name}-fastcgi.sock", 238 socket => "/tmp/${name}-fastcgi.sock",
239 mode => "0666", 239 mode => "0666",
240 user => trac, 240 user => trac,
241 children => 1, 241 children => 1,
242 require => Exec["deploy_$name"], 242 require => Exec["deploy_$name"],
243 } 243 }
244
245 logrotate::config {"trac_$name":
246 content => template('trac/logrotate.erb'),
247 ensure => 'present',
248 }
249 }
250
251 # Daily restart required for log rotation of all instances at once
252 cron {'restart-trac-daily':
253 command => 'service spawn-fcgi restart >/tmp/spawn-fcgi-restart.log',
254 environment => hiera('cron::environment', []),
255 hour => '1',
256 minute => '0',
257 user => 'root',
244 } 258 }
245 } 259 }
246 260
OLDNEW
« no previous file with comments | « no previous file | modules/trac/templates/logrotate.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld