OLD | NEW |
1 class downloadserver( | 1 class downloadserver( |
2 $domain, | 2 $domain, |
3 $certificate, | 3 $certificate, |
4 $private_key, | 4 $private_key, |
5 $is_default = false | 5 $is_default = false |
6 ) { | 6 ) { |
7 | 7 |
8 class {'nginx': | 8 class {'nginx': |
9 worker_connections => 4000, | 9 worker_connections => 4000, |
10 ssl_session_cache => off, | 10 ssl_session_cache => off, |
11 } | 11 } |
12 | 12 |
13 class {'sitescripts': | 13 class {'sitescripts': |
14 sitescriptsini_source => 'puppet:///modules/downloadserver/sitescripts', | 14 sitescriptsini_source => 'puppet:///modules/downloadserver/sitescripts', |
15 } | 15 } |
16 | 16 |
17 package {'python-jinja2':} | 17 package {'python-jinja2':} |
18 include spawn-fcgi | 18 include spawn_fcgi |
19 | 19 |
20 spawn-fcgi::pool {'multiplexer': | 20 spawn_fcgi::pool {'multiplexer': |
21 ensure => present, | 21 ensure => present, |
22 fcgi_app => '/opt/sitescripts/multiplexer.fcgi', | 22 fcgi_app => '/opt/sitescripts/multiplexer.fcgi', |
23 socket => '/tmp/multiplexer-fastcgi.sock', | 23 socket => '/tmp/multiplexer-fastcgi.sock', |
24 mode => '0666', | 24 mode => '0666', |
25 user => 'nginx', | 25 user => 'nginx', |
26 children => 1, | 26 children => 1, |
27 require => [ | 27 require => [ |
28 Class['sitescripts'], | 28 Class['sitescripts'], |
29 Package['python-jinja2'], | 29 Package['python-jinja2'], |
30 ], | 30 ], |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ensure => present, | 116 ensure => present, |
117 require => [File['/home/rsync/.ssh/id_rsa'], | 117 require => [File['/home/rsync/.ssh/id_rsa'], |
118 File['/var/www/devbuilds']], | 118 File['/var/www/devbuilds']], |
119 command => 'rsync -e ssh -ltprz --delete devbuilds@server16.adblockplus.org:
. /var/www/devbuilds', | 119 command => 'rsync -e ssh -ltprz --delete devbuilds@server16.adblockplus.org:
. /var/www/devbuilds', |
120 environment => hiera('cron::environment', []), | 120 environment => hiera('cron::environment', []), |
121 user => rsync, | 121 user => rsync, |
122 hour => '*', | 122 hour => '*', |
123 minute => '4-54/10' | 123 minute => '4-54/10' |
124 } | 124 } |
125 } | 125 } |
OLD | NEW |