| OLD | NEW |
| 1 class discourse( | 1 class discourse( |
| 2 $domain, | 2 $domain, |
| 3 $is_default = false | 3 $is_default = false |
| 4 ) inherits private::discourse { | 4 ) inherits private::discourse { |
| 5 | 5 |
| 6 include postgresql::server | 6 include postgresql::server |
| 7 | 7 |
| 8 postgresql::database {'discourse':} | 8 postgresql::database {'discourse':} |
| 9 | 9 |
| 10 postgresql::role {'discourse': | 10 postgresql::role {'discourse': |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 271 |
| 272 discourse::customservice {'sidekiq': | 272 discourse::customservice {'sidekiq': |
| 273 command => 'bundle exec sidekiq' | 273 command => 'bundle exec sidekiq' |
| 274 } | 274 } |
| 275 | 275 |
| 276 class {'nginx': | 276 class {'nginx': |
| 277 worker_processes => 1, | 277 worker_processes => 1, |
| 278 worker_connections => 500 | 278 worker_connections => 500 |
| 279 } | 279 } |
| 280 | 280 |
| 281 file {'/etc/nginx/sites-available/adblockplus.org_sslcert.key': | |
| 282 ensure => file, | |
| 283 notify => Service['nginx'], | |
| 284 before => Nginx::Hostconfig['intraforum.adblockplus.org'], | |
| 285 require => Package['nginx'], | |
| 286 source => 'puppet:///modules/private/adblockplus.org_sslcert.key' | |
| 287 } | |
| 288 | |
| 289 file {'/etc/nginx/sites-available/adblockplus.org_sslcert.pem': | |
| 290 ensure => file, | |
| 291 mode => 0400, | |
| 292 notify => Service['nginx'], | |
| 293 before => Nginx::Hostconfig[$domain], | |
| 294 require => Package['nginx'], | |
| 295 source => 'puppet:///modules/private/adblockplus.org_sslcert.pem' | |
| 296 } | |
| 297 | |
| 298 nginx::hostconfig{$domain: | 281 nginx::hostconfig{$domain: |
| 299 content => template('discourse/site.erb'), | 282 source => 'puppet:///modules/discourse/site.conf', |
| 300 enabled => true | 283 global_config => ' |
| 301 } | 284 upstream discourse { |
| 302 | 285 server localhost:3000; |
| 303 file {"/etc/logrotate.d/nginx_$domain": | 286 }', |
| 304 ensure => file, | 287 is_default => $is_default, |
| 305 require => Nginx::Hostconfig[$domain], | 288 certificate => 'adblockplus.org_sslcert.pem', |
| 306 source => 'puppet:///modules/discourse/logrotate' | 289 private_key => 'adblockplus.org_sslcert.key', |
| 290 log => 'access_log_intraforum' |
| 307 } | 291 } |
| 308 } | 292 } |
| OLD | NEW |