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

Side by Side Diff: modules/downloadserver/manifests/init.pp

Issue 11468051: Update stats processing (Closed)
Patch Set: Created Aug. 23, 2013, 1:58 p.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
1 class downloadserver { 1 class downloadserver {
2 user {'stats':
3 ensure => present,
4 home => '/home/stats',
5 managehome => true
6 }
7
8 file {'/home/stats/.ssh':
9 ensure => directory,
10 owner => stats,
11 mode => 0600,
12 require => User['stats']
13 }
14
15 file {'/home/stats/.ssh/authorized_keys':
16 ensure => present,
17 owner => stats,
18 mode => 0400,
19 source => 'puppet:///modules/private/subscriptionstat-authorized_keys'
20 }
21
22 class {'ssh':
23 custom_configuration => 'Match User stats
24 AllowTcpForwarding no
25 X11Forwarding no
26 AllowAgentForwarding no
27 GatewayPorts no
28 ForceCommand cat /var/www/stats.ini'
29 }
30
31 class {'nginx': 2 class {'nginx':
32 worker_processes => 2, 3 worker_processes => 2,
33 worker_connections => 4000, 4 worker_connections => 4000,
34 ssl_session_cache => off, 5 ssl_session_cache => off,
35 } 6 }
36 7
8 class {'statsclient':
9 log_path => '/var/log/nginx/access_log_downloads.1.gz',
10 }
11
37 user {'hg': 12 user {'hg':
38 ensure => present, 13 ensure => present,
39 comment => 'Mercurial client user', 14 comment => 'Mercurial client user',
40 home => '/home/hg', 15 home => '/home/hg',
41 managehome => true 16 managehome => true
42 } 17 }
43 18
44 file {'/var/www': 19 file {'/var/www':
45 ensure => directory, 20 ensure => directory,
46 owner => hg, 21 owner => hg,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 ensure => present, 115 ensure => present,
141 require => [File['/home/rsync/.ssh/known_hosts'], 116 require => [File['/home/rsync/.ssh/known_hosts'],
142 File['/home/rsync/.ssh/id_rsa'], 117 File['/home/rsync/.ssh/id_rsa'],
143 File['/var/www/devbuilds']], 118 File['/var/www/devbuilds']],
144 command => 'rsync -e ssh -ltprz devbuilds@ssh.adblockplus.org:. /var/www/dev builds', 119 command => 'rsync -e ssh -ltprz devbuilds@ssh.adblockplus.org:. /var/www/dev builds',
145 user => rsync, 120 user => rsync,
146 hour => '*', 121 hour => '*',
147 minute => '4-54/10' 122 minute => '4-54/10'
148 } 123 }
149 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld