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 |
261 Discourse::Customservice <| |> { | 267 Discourse::Customservice <| |> { |
262 user => 'discourse', | 268 user => 'discourse', |
263 workdir => '/opt/discourse', | 269 workdir => '/opt/discourse', |
264 env => ['RAILS_ENV=production', 'RUBY_GC_MALLOC_LIMIT=90000000', | 270 env => ['RAILS_ENV=production', 'RUBY_GC_MALLOC_LIMIT=90000000', |
265 'UNICORN_WORKERS=2', 'LD_PRELOAD=/usr/lib/libjemalloc.so.1'], | 271 'UNICORN_WORKERS=2', 'LD_PRELOAD=/usr/lib/libjemalloc.so.1'], |
266 require => Exec['/usr/local/bin/init-discourse'] | 272 require => Exec['/usr/local/bin/init-discourse'] |
267 } | 273 } |
268 | 274 |
269 discourse::customservice {'discourse': | 275 discourse::customservice {'discourse': |
270 command => 'bundle exec config/unicorn_launcher -c config/unicorn.conf.rb', | 276 command => 'bundle exec config/unicorn_launcher -c config/unicorn.conf.rb', |
(...skipping 14 matching lines...) Expand all Loading... |
285 global_config => ' | 291 global_config => ' |
286 upstream discourse { | 292 upstream discourse { |
287 server localhost:3000; | 293 server localhost:3000; |
288 }', | 294 }', |
289 is_default => $is_default, | 295 is_default => $is_default, |
290 certificate => $certificate, | 296 certificate => $certificate, |
291 private_key => $private_key, | 297 private_key => $private_key, |
292 log => 'access_log_intraforum' | 298 log => 'access_log_intraforum' |
293 } | 299 } |
294 } | 300 } |
OLD | NEW |