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

Side by Side Diff: modules/statsmaster/manifests/downloads.pp

Issue 29464559: #1538 - Remove class statsmaster and associated resources (Closed)
Patch Set: Created June 13, 2017, 9:43 a.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
(Empty)
1 class statsmaster::downloads {
2 package {['pypy', 'python-jinja2']:}
3
4 class {'sitescripts':
5 sitescriptsini_content => template('statsmaster/sitescripts.ini.erb'),
6 }
7
8 file {['/var/www/stats', '/var/www/statsdata']:
9 ensure => directory,
10 mode => 0755,
11 owner => stats,
12 }
13
14 file {'/var/www/statsdata/usercounts.html':
15 ensure => file,
16 mode => 0444,
17 source => 'puppet:///modules/statsmaster/usercounts.html',
18 owner => stats,
19 }
20
21 cron {'updatestats':
22 ensure => present,
23 require => [
24 Package['pypy'],
25 Package['python-jinja2'],
26 Class["sitescripts"]
27 ],
28 command => "pypy -m sitescripts.stats.bin.logprocessor && python -m sitescri pts.stats.bin.pagegenerator",
29 environment => concat(hiera('cron::environment', []), [
30 'PYTHONPATH=/opt/sitescripts',
31 ]),
32 user => stats,
33 hour => 1,
34 minute => 30,
35 }
36 }
OLDNEW

Powered by Google App Engine
This is Rietveld