OLD | NEW |
1 class discourse( | 1 class discourse( |
2 $domain, | 2 $domain, |
3 $certificate, | 3 $certificate, |
4 $private_key, | 4 $private_key, |
5 $is_default = false | 5 $is_default = false |
6 ) inherits private::discourse { | 6 ) inherits private::discourse { |
7 | 7 |
8 class { 'postgresql::globals': | 8 class { 'postgresql::globals': |
9 manage_package_repo => true, | 9 manage_package_repo => true, |
10 version => '9.3', | 10 version => '9.3', |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 customservice {'discourse': | 332 customservice {'discourse': |
333 command => '/home/discourse/.rvm/bin/rvm default do bundle exec config/unico
rn_launcher -c config/unicorn.conf.rb', | 333 command => '/home/discourse/.rvm/bin/rvm default do bundle exec config/unico
rn_launcher -c config/unicorn.conf.rb', |
334 require => File['/opt/discourse/tmp/pids'], | 334 require => File['/opt/discourse/tmp/pids'], |
335 } | 335 } |
336 | 336 |
337 customservice {'sidekiq': | 337 customservice {'sidekiq': |
338 command => '/home/discourse/.rvm/bin/rvm default do bundle exec sidekiq' | 338 command => '/home/discourse/.rvm/bin/rvm default do bundle exec sidekiq' |
339 } | 339 } |
340 | 340 |
341 class {'nginx': | 341 class {'nginx': |
342 worker_processes => 1, | |
343 worker_connections => 500 | 342 worker_connections => 500 |
344 } | 343 } |
345 | 344 |
346 nginx::hostconfig{$domain: | 345 nginx::hostconfig{$domain: |
347 source => 'puppet:///modules/discourse/site.conf', | 346 source => 'puppet:///modules/discourse/site.conf', |
348 global_config => ' | 347 global_config => ' |
349 upstream discourse { | 348 upstream discourse { |
350 server localhost:3000; | 349 server localhost:3000; |
351 }', | 350 }', |
352 is_default => $is_default, | 351 is_default => $is_default, |
353 certificate => $certificate, | 352 certificate => $certificate, |
354 private_key => $private_key, | 353 private_key => $private_key, |
355 log => 'access_log_intraforum' | 354 log => 'access_log_intraforum' |
356 } | 355 } |
357 } | 356 } |
OLD | NEW |