OLD | NEW |
1 class filterserver { | 1 class filterserver { |
2 user {'subscriptionstat': | 2 user {'subscriptionstat': |
3 ensure => present, | 3 ensure => present, |
4 home => '/home/subscriptionstat', | 4 home => '/home/subscriptionstat', |
5 managehome => true | 5 managehome => true |
6 } | 6 } |
7 | 7 |
8 file {'/home/subscriptionstat/.ssh': | 8 file {'/home/subscriptionstat/.ssh': |
9 ensure => directory, | 9 ensure => directory, |
10 owner => subscriptionstat, | 10 owner => subscriptionstat, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 ], | 164 ], |
165 command => 'rsync -e ssh -ltprz rsync@ssh.adblockplus.org:. /var/www/easylis
t/', | 165 command => 'rsync -e ssh -ltprz rsync@ssh.adblockplus.org:. /var/www/easylis
t/', |
166 user => rsync, | 166 user => rsync, |
167 hour => '*', | 167 hour => '*', |
168 minute => '2-52/10' | 168 minute => '2-52/10' |
169 } | 169 } |
170 | 170 |
171 cron {'mirrorstats': | 171 cron {'mirrorstats': |
172 ensure => present, | 172 ensure => present, |
173 require => [ | 173 require => [ |
174 User['rsync'], | 174 User['rsync'], |
175 Package['python-geoip'] | 175 Package['python-geoip'], |
| 176 Exec["fetch_sitescripts"] |
176 ], | 177 ], |
177 command => 'gzip -cd /var/log/nginx/access_log_easylist_downloads.1.gz | pyt
hon -m sitescripts.logs.bin.extractSubscriptionStats', | 178 command => 'gzip -cd /var/log/nginx/access_log_easylist_downloads.1.gz | pyt
hon -m sitescripts.logs.bin.extractSubscriptionStats', |
178 environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescript
s'], | 179 environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescript
s'], |
179 user => rsync, | 180 user => rsync, |
180 hour => 1, | 181 hour => 1, |
181 minute => 25 | 182 minute => 25 |
182 } | 183 } |
183 | 184 |
184 cron {'geoipdb_update': | 185 cron {'geoipdb_update': |
185 ensure => present, | 186 ensure => present, |
186 require => File['/opt/cron_geoipdb_update.sh'], | 187 require => File['/opt/cron_geoipdb_update.sh'], |
187 command => '/opt/cron_geoipdb_update.sh', | 188 command => '/opt/cron_geoipdb_update.sh', |
188 user => root, | 189 user => root, |
189 hour => 3, | 190 hour => 3, |
190 minute => 15, | 191 minute => 15, |
191 monthday => 3 | 192 monthday => 3 |
192 } | 193 } |
193 | 194 |
194 } | 195 } |
OLD | NEW |