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

Side by Side Diff: modules/sitescripts/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/notificationserver/manifests/init.pp ('k') | modules/statsclient/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 sitescripts ( 1 class sitescripts (
2 $sitescriptsini_source = undef 2 $sitescriptsini_source = undef
3 ){ 3 ){
4 4
5 concat {'/etc/sitescripts.ini': 5 concat {'/etc/sitescripts.ini':
6 mode => 644, 6 mode => 644,
7 owner => root, 7 owner => root,
8 group => root, 8 group => root,
9 } 9 }
10 10
(...skipping 10 matching lines...) Expand all
21 exec { "fetch_sitescripts": 21 exec { "fetch_sitescripts":
22 command => "hg clone https://hg.adblockplus.org/sitescripts /opt/sitescripts ", 22 command => "hg clone https://hg.adblockplus.org/sitescripts /opt/sitescripts ",
23 path => ["/usr/bin/", "/bin/"], 23 path => ["/usr/bin/", "/bin/"],
24 require => Package['mercurial'], 24 require => Package['mercurial'],
25 onlyif => "test ! -d /opt/sitescripts" 25 onlyif => "test ! -d /opt/sitescripts"
26 } 26 }
27 27
28 cron {"update_sitescripts": 28 cron {"update_sitescripts":
29 ensure => present, 29 ensure => present,
30 command => "hg pull -q -u -R /opt/sitescripts", 30 command => "hg pull -q -u -R /opt/sitescripts",
31 environment => ['MAILTO=admins@adblockplus.org,root'],
31 user => root, 32 user => root,
32 require => Exec["fetch_sitescripts"], 33 require => Exec["fetch_sitescripts"],
33 } 34 }
34 } 35 }
OLDNEW
« no previous file with comments | « modules/notificationserver/manifests/init.pp ('k') | modules/statsclient/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld