OLD | NEW |
1 class statsmaster { | 1 class statsmaster { |
2 user {'stats': | 2 user {'stats': |
3 ensure => present, | 3 ensure => present, |
4 home => '/home/stats', | 4 home => '/home/stats', |
5 managehome => true, | 5 managehome => true, |
6 } | 6 } |
7 | 7 |
8 file {'/home/stats/.ssh': | 8 file {'/home/stats/.ssh': |
9 ensure => directory, | 9 ensure => directory, |
10 owner => stats, | 10 owner => stats, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 cron {'updatestats': | 98 cron {'updatestats': |
99 ensure => present, | 99 ensure => present, |
100 require => [ | 100 require => [ |
101 User['stats'], | 101 User['stats'], |
102 Package['python-simplejson'], | 102 Package['python-simplejson'], |
103 Package['python-jinja2'], | 103 Package['python-jinja2'], |
104 Exec["fetch_sitescripts"] | 104 Exec["fetch_sitescripts"] |
105 ], | 105 ], |
106 command => "python -m sitescripts.stats.bin.datamerger && python -m sitescri
pts.stats.bin.pagegenerator", | 106 command => "python -m sitescripts.stats.bin.datamerger && python -m sitescri
pts.stats.bin.pagegenerator", |
107 environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescript
s'], | 107 environment => ['MAILTO=admins@adblockplus.org,root', 'PYTHONPATH=/opt/sites
cripts'], |
108 user => stats, | 108 user => stats, |
109 hour => 4, | 109 hour => 4, |
110 minute => 30, | 110 minute => 30, |
111 } | 111 } |
112 } | 112 } |
OLD | NEW |