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

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

Issue 29329131: Issue 123 - Integrate filterserver cron::envrionment with Hiera (Closed)
Patch Set: Created Oct. 14, 2015, 5:20 p.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/notificationserver/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 filterserver($is_default = false) { 1 class filterserver($is_default = false) {
2 if !defined(Class['nginx']) { 2 if !defined(Class['nginx']) {
3 class {'nginx': 3 class {'nginx':
4 worker_connections => 4000, 4 worker_connections => 4000,
5 ssl_session_cache => off, 5 ssl_session_cache => off,
6 } 6 }
7 } 7 }
8 8
9 if !defined(File['/var/www']) { 9 if !defined(File['/var/www']) {
10 file {'/var/www': 10 file {'/var/www':
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 94
95 cron {'mirror': 95 cron {'mirror':
96 ensure => present, 96 ensure => present,
97 require => [ 97 require => [
98 File['/home/rsync/.ssh/known_hosts'], 98 File['/home/rsync/.ssh/known_hosts'],
99 File['/home/rsync/.ssh/id_rsa'], 99 File['/home/rsync/.ssh/id_rsa'],
100 User['rsync'] 100 User['rsync']
101 ], 101 ],
102 command => 'rsync -e "ssh -o CheckHostIP=no" -ltprz --delete rsync@filtermas ter.adblockplus.org:. /var/www/easylist/', 102 command => 'rsync -e "ssh -o CheckHostIP=no" -ltprz --delete rsync@filtermas ter.adblockplus.org:. /var/www/easylist/',
103 environment => ['MAILTO=admins@adblockplus.org,root'], 103 environment => hiera('cron::environment', []),
104 user => rsync, 104 user => rsync,
105 hour => '*', 105 hour => '*',
106 minute => '2-52/10' 106 minute => '2-52/10'
107 } 107 }
108 } 108 }
OLDNEW
« no previous file with comments | « no previous file | modules/notificationserver/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld