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

Unified Diff: modules/downloadserver/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 | « no previous file | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/downloadserver/manifests/init.pp
===================================================================
--- a/modules/downloadserver/manifests/init.pp
+++ b/modules/downloadserver/manifests/init.pp
@@ -63,16 +63,17 @@ class downloadserver {
mode => 0444,
require => Nginx::Hostconfig['downloads.adblockplus.org'],
source => 'puppet:///modules/downloadserver/logrotate'
}
cron {'mirror':
ensure => present,
command => 'hg pull -q -u -R /var/www/downloads/',
+ environment => ['MAILTO=admins@adblockplus.org,root'],
user => hg,
minute => '*/10'
}
file {'/var/www/devbuilds':
ensure => directory,
owner => rsync
}
@@ -112,13 +113,14 @@ class downloadserver {
}
cron {'mirror-devbuilds':
ensure => present,
require => [File['/home/rsync/.ssh/known_hosts'],
File['/home/rsync/.ssh/id_rsa'],
File['/var/www/devbuilds']],
command => 'rsync -e ssh -ltprz devbuilds@ssh.adblockplus.org:. /var/www/devbuilds',
+ environment => ['MAILTO=admins@adblockplus.org,root'],
user => rsync,
hour => '*',
minute => '4-54/10'
}
}
« no previous file with comments | « no previous file | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld