| 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 include postgresql::server | 8 include postgresql::server |
| 9 | 9 |
| 10 postgresql::database {'discourse':} | 10 postgresql::database {'discourse':} |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 type => 5, | 251 type => 5, |
| 252 value => 't' | 252 value => 't' |
| 253 } | 253 } |
| 254 | 254 |
| 255 discourse::sitesetting {'white_listed_spam_host_domains': | 255 discourse::sitesetting {'white_listed_spam_host_domains': |
| 256 ensure => present, | 256 ensure => present, |
| 257 type => 1, | 257 type => 1, |
| 258 value => 'adblockplus.org,eyeo.com' | 258 value => 'adblockplus.org,eyeo.com' |
| 259 } | 259 } |
| 260 | 260 |
| 261 discourse::sitesetting {'max_mentions_per_post': | |
| 262 ensure => present, | |
| 263 type => 3, | |
| 264 value => '50', | |
| 265 } | |
| 266 | |
| 267 Discourse::Customservice <| |> { | 261 Discourse::Customservice <| |> { |
| 268 user => 'discourse', | 262 user => 'discourse', |
| 269 workdir => '/opt/discourse', | 263 workdir => '/opt/discourse', |
| 270 env => ['RAILS_ENV=production', 'RUBY_GC_MALLOC_LIMIT=90000000', | 264 env => ['RAILS_ENV=production', 'RUBY_GC_MALLOC_LIMIT=90000000', |
| 271 'UNICORN_WORKERS=2', 'LD_PRELOAD=/usr/lib/libjemalloc.so.1'], | 265 'UNICORN_WORKERS=2', 'LD_PRELOAD=/usr/lib/libjemalloc.so.1'], |
| 272 require => Exec['/usr/local/bin/init-discourse'] | 266 require => Exec['/usr/local/bin/init-discourse'] |
| 273 } | 267 } |
| 274 | 268 |
| 275 discourse::customservice {'discourse': | 269 discourse::customservice {'discourse': |
| 276 command => 'bundle exec config/unicorn_launcher -c config/unicorn.conf.rb', | 270 command => 'bundle exec config/unicorn_launcher -c config/unicorn.conf.rb', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 291 global_config => ' | 285 global_config => ' |
| 292 upstream discourse { | 286 upstream discourse { |
| 293 server localhost:3000; | 287 server localhost:3000; |
| 294 }', | 288 }', |
| 295 is_default => $is_default, | 289 is_default => $is_default, |
| 296 certificate => $certificate, | 290 certificate => $certificate, |
| 297 private_key => $private_key, | 291 private_key => $private_key, |
| 298 log => 'access_log_intraforum' | 292 log => 'access_log_intraforum' |
| 299 } | 293 } |
| 300 } | 294 } |
| OLD | NEW |