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

Unified Diff: modules/statsmaster/manifests/downloads.pp

Issue 6293281981857792: Issue 239 - Move AWStats processing to the stats server (Closed)
Patch Set: Added IP address anonymization and addressed review comments Created April 25, 2014, 7:38 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 | « modules/statsmaster/manifests/awstats.pp ('k') | modules/statsmaster/templates/anonymize_ips_head.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/statsmaster/manifests/downloads.pp
===================================================================
--- a/modules/statsmaster/manifests/downloads.pp
+++ b/modules/statsmaster/manifests/downloads.pp
@@ -1,22 +1,16 @@
class statsmaster::downloads {
package {['pypy', 'python-jinja2']:}
class {'sitescripts':
sitescriptsini_source => 'puppet:///modules/statsmaster/sitescripts.ini',
}
- file {'/var/www/stats':
- ensure => directory,
- mode => 0755,
- owner => stats,
- }
-
- file {'/var/www/statsdata':
+ file {['/var/www/stats', '/var/www/statsdata']:
ensure => directory,
mode => 0755,
owner => stats,
}
file {'/var/www/statsdata/usercounts.html':
ensure => file,
mode => 0444,
@@ -27,14 +21,15 @@ class statsmaster::downloads {
cron {'updatestats':
ensure => present,
require => [
Package['pypy'],
Package['python-jinja2'],
Exec["fetch_sitescripts"]
],
command => "pypy -m sitescripts.stats.bin.logprocessor && python -m sitescripts.stats.bin.pagegenerator",
- environment => ['MAILTO=admins@adblockplus.org,root', 'PYTHONPATH=/opt/sitescripts'],
+ environment => ['MAILTO=admins@adblockplus.org,root',
+ 'PYTHONPATH=/opt/sitescripts'],
user => stats,
hour => 1,
minute => 30,
}
}
« no previous file with comments | « modules/statsmaster/manifests/awstats.pp ('k') | modules/statsmaster/templates/anonymize_ips_head.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld