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

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

Issue 6029451183783936: Add Filtermaster (Closed)
Patch Set: Add ssh Created Nov. 14, 2013, 12:05 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
OLDNEW
1 class filterserver { 1 class filterserver {
2 class {'nginx': 2 class {'nginx':
3 worker_processes => 2, 3 worker_processes => 2,
4 worker_connections => 4000, 4 worker_connections => 4000,
5 ssl_session_cache => off, 5 ssl_session_cache => off,
6 } 6 }
7 7
8 class {'statsclient': 8 class {'statsclient':
9 log_path => '/var/log/nginx/access_log_easylist_downloads.1.gz', 9 log_path => '/var/log/nginx/access_log_easylist_downloads.1.gz',
10 } 10 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 file {'/home/rsync/.ssh/known_hosts': 87 file {'/home/rsync/.ssh/known_hosts':
88 ensure => file, 88 ensure => file,
89 require => [ 89 require => [
90 File['/home/rsync/.ssh'], 90 File['/home/rsync/.ssh'],
91 User['rsync'] 91 User['rsync']
92 ], 92 ],
93 owner => rsync, 93 owner => rsync,
94 mode => 0444, 94 mode => 0444,
95 source => 'puppet:///modules/filterserver/known_hosts' 95 source => 'puppet:///modules/private/rsync@filterserver_known_hosts'
96 } 96 }
97 97
98 file {'/home/rsync/.ssh/id_rsa': 98 file {'/home/rsync/.ssh/id_rsa':
99 ensure => file, 99 ensure => file,
100 require => [ 100 require => [
101 File['/home/rsync/.ssh'], 101 File['/home/rsync/.ssh'],
102 User['rsync'] 102 User['rsync']
103 ], 103 ],
104 owner => rsync, 104 owner => rsync,
105 mode => 0400, 105 mode => 0400,
(...skipping 11 matching lines...) Expand all
117 source => 'puppet:///modules/private/rsync@easylist-downloads.adblockplus.or g.pub' 117 source => 'puppet:///modules/private/rsync@easylist-downloads.adblockplus.or g.pub'
118 } 118 }
119 119
120 cron {'mirror': 120 cron {'mirror':
121 ensure => present, 121 ensure => present,
122 require => [ 122 require => [
123 File['/home/rsync/.ssh/known_hosts'], 123 File['/home/rsync/.ssh/known_hosts'],
124 File['/home/rsync/.ssh/id_rsa'], 124 File['/home/rsync/.ssh/id_rsa'],
125 User['rsync'] 125 User['rsync']
126 ], 126 ],
127 command => 'rsync -e ssh -ltprz --delete rsync@ssh.adblockplus.org:. /var/ww w/easylist/', 127 command => 'rsync -e ssh -ltprz --delete rsync@filtermaster1.adblockplus.org :. /var/www/easylist/',
128 environment => ['MAILTO=admins@adblockplus.org,root'], 128 environment => ['MAILTO=admins@adblockplus.org,root'],
129 user => rsync, 129 user => rsync,
130 hour => '*', 130 hour => '*',
131 minute => '2-52/10' 131 minute => '2-52/10'
132 } 132 }
133 } 133 }
OLDNEW

Powered by Google App Engine
This is Rietveld