| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 class statsmaster::downloads { | |
| 2 package {['pypy', 'python-jinja2']:} | |
| 3 | |
| 4 class {'sitescripts': | |
| 5 sitescriptsini_source => 'puppet:///modules/statsmaster/sitescripts.ini', | |
| 6 } | |
| 7 | |
| 8 file {'/var/www/stats': | |
|
Felix Dahlke
2014/04/25 04:37:08
Could also be merged with the file resource below
| |
| 9 ensure => directory, | |
| 10 mode => 0755, | |
| 11 owner => stats, | |
| 12 } | |
| 13 | |
| 14 file {'/var/www/statsdata': | |
| 15 ensure => directory, | |
| 16 mode => 0755, | |
| 17 owner => stats, | |
| 18 } | |
| 19 | |
| 20 file {'/var/www/statsdata/usercounts.html': | |
| 21 ensure => file, | |
| 22 mode => 0444, | |
| 23 source => 'puppet:///modules/statsmaster/usercounts.html', | |
| 24 owner => stats, | |
| 25 } | |
| 26 | |
| 27 cron {'updatestats': | |
| 28 ensure => present, | |
| 29 require => [ | |
| 30 Package['pypy'], | |
| 31 Package['python-jinja2'], | |
| 32 Exec["fetch_sitescripts"] | |
| 33 ], | |
| 34 command => "pypy -m sitescripts.stats.bin.logprocessor && python -m sitescri pts.stats.bin.pagegenerator", | |
| 35 environment => ['MAILTO=admins@adblockplus.org,root', 'PYTHONPATH=/opt/sites cripts'], | |
|
Felix Dahlke
2014/04/25 04:37:08
Nit: Wrap at 80 columns? (Note that for the line a
| |
| 36 user => stats, | |
| 37 hour => 1, | |
| 38 minute => 30, | |
| 39 } | |
| 40 } | |
| OLD | NEW |