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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/sitescripts/manifests/init.pp ('k') | modules/statsmaster/manifests/init.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/statsclient/manifests/init.pp
===================================================================
--- a/modules/statsclient/manifests/init.pp
+++ b/modules/statsclient/manifests/init.pp
@@ -56,24 +56,25 @@ class statsclient (
cron {'mirrorstats':
ensure => present,
require => [
User['stats'],
Package['pypy'],
Exec["fetch_sitescripts"]
],
command => "gzip -cd ${log_path} | pypy -m sitescripts.stats.bin.logprocessor",
- environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescripts'],
+ environment => ['MAILTO=admins@adblockplus.org,root', 'PYTHONPATH=/opt/sitescripts'],
user => stats,
hour => 0,
minute => 25,
}
cron {'geoipdb_update':
ensure => present,
require => File['/opt/cron_geoipdb_update.sh'],
command => '/opt/cron_geoipdb_update.sh',
+ environment => ['MAILTO=admins@adblockplus.org,root'],
user => root,
hour => 3,
minute => 15,
monthday => 3,
}
}
« 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