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

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

Issue 11548101: Send all cron mail both to admins and the local root user (Closed)
Patch Set: Created Sept. 2, 2013, 9:21 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 | « modules/sitescripts/manifests/init.pp ('k') | modules/statsmaster/manifests/init.pp » ('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 statsclient ( 1 class statsclient (
2 $log_path, 2 $log_path,
3 $custom_sitescriptsini_source = [], 3 $custom_sitescriptsini_source = [],
4 ) { 4 ) {
5 5
6 $sitescriptsini_source = flatten(['puppet:///modules/statsclient/sitescripts.i ni', $custom_sitescriptsini_source]) 6 $sitescriptsini_source = flatten(['puppet:///modules/statsclient/sitescripts.i ni', $custom_sitescriptsini_source])
7 7
8 user {'stats': 8 user {'stats':
9 ensure => present, 9 ensure => present,
10 home => '/home/stats', 10 home => '/home/stats',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 cron {'mirrorstats': 56 cron {'mirrorstats':
57 ensure => present, 57 ensure => present,
58 require => [ 58 require => [
59 User['stats'], 59 User['stats'],
60 Package['pypy'], 60 Package['pypy'],
61 Exec["fetch_sitescripts"] 61 Exec["fetch_sitescripts"]
62 ], 62 ],
63 command => "gzip -cd ${log_path} | pypy -m sitescripts.stats.bin.logprocesso r", 63 command => "gzip -cd ${log_path} | pypy -m sitescripts.stats.bin.logprocesso r",
64 environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescript s'], 64 environment => ['MAILTO=admins@adblockplus.org,root', 'PYTHONPATH=/opt/sites cripts'],
65 user => stats, 65 user => stats,
66 hour => 0, 66 hour => 0,
67 minute => 25, 67 minute => 25,
68 } 68 }
69 69
70 cron {'geoipdb_update': 70 cron {'geoipdb_update':
71 ensure => present, 71 ensure => present,
72 require => File['/opt/cron_geoipdb_update.sh'], 72 require => File['/opt/cron_geoipdb_update.sh'],
73 command => '/opt/cron_geoipdb_update.sh', 73 command => '/opt/cron_geoipdb_update.sh',
74 environment => ['MAILTO=admins@adblockplus.org,root'],
74 user => root, 75 user => root,
75 hour => 3, 76 hour => 3,
76 minute => 15, 77 minute => 15,
77 monthday => 3, 78 monthday => 3,
78 } 79 }
79 } 80 }
OLDNEW
« no previous file with comments | « modules/sitescripts/manifests/init.pp ('k') | modules/statsmaster/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld