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

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

Issue 6155422901731328: Run Rietveld using the AppEngine SDK (Closed)
Patch Set: Addressed comments and added caching Created June 4, 2015, 9:19 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 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 type => 1, 314 type => 1,
315 value => 'adblockplus.org,eyeo.com' 315 value => 'adblockplus.org,eyeo.com'
316 } 316 }
317 317
318 discourse::sitesetting {'max_mentions_per_post': 318 discourse::sitesetting {'max_mentions_per_post':
319 ensure => present, 319 ensure => present,
320 type => 3, 320 type => 3,
321 value => '50', 321 value => '50',
322 } 322 }
323 323
324 Discourse::Customservice <| |> { 324 Customservice {
325 user => 'discourse', 325 user => 'discourse',
326 workdir => '/opt/discourse', 326 workdir => '/opt/discourse',
327 env => ['RAILS_ENV=production', 'RUBY_GC_MALLOC_LIMIT=90000000', 327 env => ['RAILS_ENV=production', 'RUBY_GC_MALLOC_LIMIT=90000000',
328 'UNICORN_WORKERS=2', 'LD_PRELOAD=/usr/lib/libjemalloc.so.1'], 328 'UNICORN_WORKERS=2', 'LD_PRELOAD=/usr/lib/libjemalloc.so.1'],
329 require => Exec['init-discourse'] 329 require => Exec['init-discourse']
330 } 330 }
331 331
332 discourse::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 discourse::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, 342 worker_processes => 1,
343 worker_connections => 500 343 worker_connections => 500
344 } 344 }
345 345
346 nginx::hostconfig{$domain: 346 nginx::hostconfig{$domain:
347 source => 'puppet:///modules/discourse/site.conf', 347 source => 'puppet:///modules/discourse/site.conf',
348 global_config => ' 348 global_config => '
349 upstream discourse { 349 upstream discourse {
350 server localhost:3000; 350 server localhost:3000;
351 }', 351 }',
352 is_default => $is_default, 352 is_default => $is_default,
353 certificate => $certificate, 353 certificate => $certificate,
354 private_key => $private_key, 354 private_key => $private_key,
355 log => 'access_log_intraforum' 355 log => 'access_log_intraforum'
356 } 356 }
357 } 357 }
OLDNEW

Powered by Google App Engine
This is Rietveld