OLD | NEW |
1 # == Class: codereview | 1 # == Class: codereview |
2 # | 2 # |
3 # A codereview server setup based on Rietveld. | 3 # A codereview server setup based on Rietveld. |
4 # | 4 # |
5 # === Parameters: | 5 # === Parameters: |
6 # | 6 # |
7 # [*domain*] | 7 # [*domain*] |
8 # The auhority part of the URL the Rietveld instance is associated with. | 8 # The auhority part of the URL the Rietveld instance is associated with. |
9 # | 9 # |
10 # [*is_default*] | 10 # [*is_default*] |
(...skipping 14 matching lines...) Expand all Loading... |
25 # domain => 'localhost', | 25 # domain => 'localhost', |
26 # } | 26 # } |
27 # | 27 # |
28 class codereview( | 28 class codereview( |
29 $domain, | 29 $domain, |
30 $is_default = false, | 30 $is_default = false, |
31 $certificate = undef, | 31 $certificate = undef, |
32 $private_key = undef, | 32 $private_key = undef, |
33 ) { | 33 ) { |
34 | 34 |
35 class {'rietveld': | 35 include nginx, rietveld |
36 domain => $domain, | 36 |
| 37 nginx::hostconfig {$domain: |
| 38 source => 'puppet:///modules/codereview/site.conf', |
| 39 is_default => $is_default, |
37 certificate => $certificate, | 40 certificate => $certificate, |
38 private_key => $private_key, | 41 private_key => $private_key, |
39 is_default => $is_default, | 42 log => 'access_log_codereview' |
40 } | 43 } |
41 | |
42 } | 44 } |
OLD | NEW |