OLD | NEW |
1 class updateserver( | 1 class updateserver( |
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 class {'nginx': | 7 class {'nginx': |
8 worker_processes => 2, | 8 worker_processes => 2, |
9 worker_connections => 4000, | 9 worker_connections => 4000, |
10 ssl_session_cache => off, | 10 ssl_session_cache => off, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 cron {'update_update_manifests': | 116 cron {'update_update_manifests': |
117 ensure => present, | 117 ensure => present, |
118 environment => ['MAILTO=admins@adblockplus.org'], | 118 environment => ['MAILTO=admins@adblockplus.org'], |
119 command => $update_update_manifests_script, | 119 command => $update_update_manifests_script, |
120 user => 'sitescripts', | 120 user => 'sitescripts', |
121 minute => '*/10', | 121 minute => '*/10', |
122 require => Exec['update_update_manifests'] | 122 require => Exec['update_update_manifests'] |
123 } | 123 } |
124 | 124 |
125 include spawn-fcgi | 125 include spawn-fcgi |
126 package {['python-flup', 'python-mysqldb']:} | 126 package {'python-flup':} |
127 | 127 |
128 spawn-fcgi::pool {"multiplexer": | 128 spawn-fcgi::pool {"multiplexer": |
129 ensure => present, | 129 ensure => present, |
130 fcgi_app => '/opt/sitescripts/multiplexer.fcgi', | 130 fcgi_app => '/opt/sitescripts/multiplexer.fcgi', |
131 socket => '/tmp/multiplexer-fastcgi.sock', | 131 socket => '/tmp/multiplexer-fastcgi.sock', |
132 mode => '0666', | 132 mode => '0666', |
133 user => 'nginx', | 133 user => 'nginx', |
134 children => 1, | 134 children => 1, |
135 require => [ | 135 require => [ |
136 Exec["fetch_sitescripts"], | 136 Exec["fetch_sitescripts"], |
137 Package["python-flup"], | 137 Package["python-flup"], |
138 Package["python-mysqldb"], | |
139 ], | 138 ], |
140 } | 139 } |
141 } | 140 } |
OLD | NEW |