OLD | NEW |
1 class discourse( | 1 class discourse( |
2 $domain, | 2 $domain, |
| 3 $certificate, |
| 4 $private_key, |
3 $is_default = false | 5 $is_default = false |
4 ) inherits private::discourse { | 6 ) inherits private::discourse { |
5 | 7 |
6 include postgresql::server | 8 include postgresql::server |
7 | 9 |
8 postgresql::database {'discourse':} | 10 postgresql::database {'discourse':} |
9 | 11 |
10 postgresql::role {'discourse': | 12 postgresql::role {'discourse': |
11 password_hash => $database_password, | 13 password_hash => $database_password, |
12 db => 'discourse', | 14 db => 'discourse', |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 worker_connections => 500 | 280 worker_connections => 500 |
279 } | 281 } |
280 | 282 |
281 nginx::hostconfig{$domain: | 283 nginx::hostconfig{$domain: |
282 source => 'puppet:///modules/discourse/site.conf', | 284 source => 'puppet:///modules/discourse/site.conf', |
283 global_config => ' | 285 global_config => ' |
284 upstream discourse { | 286 upstream discourse { |
285 server localhost:3000; | 287 server localhost:3000; |
286 }', | 288 }', |
287 is_default => $is_default, | 289 is_default => $is_default, |
288 certificate => 'adblockplus.org_sslcert.pem', | 290 certificate => $certificate, |
289 private_key => 'adblockplus.org_sslcert.key', | 291 private_key => $private_key, |
290 log => 'access_log_intraforum' | 292 log => 'access_log_intraforum' |
291 } | 293 } |
292 } | 294 } |
OLD | NEW |