Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # == Class: adblockplus::telemetry | 1 # == Class: adblockplus::telemetry |
2 # | 2 # |
3 # A receiver for incoming statistic data and reports. | 3 # A receiver for incoming statistic data and reports. |
4 # | 4 # |
5 # === Parameters: | 5 # === Parameters: |
6 # | 6 # |
7 # [*domain*] | 7 # [*domain*] |
8 # The authorative domain to bind to, although the setup will ensure | 8 # The authorative domain to bind to, although the setup will ensure |
9 # the host being the one used by default. | 9 # the host being the one used by default. |
10 # | 10 # |
11 # [*endpoints*] | 11 # [*endpoints*] |
12 # A hash of adblockplus::telemetry::endpoin setup parameters to become | 12 # A hash of adblockplus::telemetry::endpoint setup parameters to become |
Fred
2015/11/05 13:59:48
Typo: endpoint
| |
13 # included with the class. | 13 # included with the class. |
14 # | 14 # |
15 # [*ssl_cert*] | 15 # [*ssl_cert*] |
16 # If provided, the host will bind to HTTPS, and redirect from HTTP. | 16 # If provided, the host will bind to HTTPS, and redirect from HTTP. |
17 # Requires $ssl_key to be given as well. | 17 # Requires $ssl_key to be given as well. |
18 # | 18 # |
19 # [*ssl_key*] | 19 # [*ssl_key*] |
20 # The private SSL key the $ssl_cert is associated with. | 20 # The private SSL key the $ssl_cert is associated with. |
21 # | 21 # |
22 # === Examples: | 22 # === Examples: |
23 # | 23 # |
24 # class {'adblockplus::telemetry': | 24 # class {'adblockplus::telemetry': |
25 # domain => 'telemetry.adblockplus.org', | 25 # domain => 'telemetry.adblockplus.org', |
26 # endpoints => { | 26 # endpoints => { |
27 # # see adblockplus::telementry::endpoint | 27 # # see adblockplus::telemetry::endpoint |
Fred
2015/11/05 13:59:47
Typo: telemetry
| |
28 # }, | 28 # }, |
29 # } | 29 # } |
30 # | 30 # |
31 class adblockplus::telemetry ( | 31 class adblockplus::telemetry ( |
32 $domain, | 32 $domain, |
33 $endpoints = hiera('adblockplus::telemetry::endpoints', {}), | 33 $endpoints = hiera('adblockplus::telemetry::endpoints', {}), |
34 $ssl_cert = hiera('adblockplus::telemetry::ssl_cert', ''), | 34 $ssl_cert = hiera('adblockplus::telemetry::ssl_cert', ''), |
35 $ssl_key = hiera('adblockplus::telemetry::ssl_key', ''), | 35 $ssl_key = hiera('adblockplus::telemetry::ssl_key', ''), |
36 ) { | 36 ) { |
37 | 37 |
(...skipping 15 matching lines...) Expand all Loading... | |
53 | 53 |
54 nginx::hostconfig {$domain: | 54 nginx::hostconfig {$domain: |
55 certificate => $ssl_cert ? {'' => undef, default => $ssl_cert}, | 55 certificate => $ssl_cert ? {'' => undef, default => $ssl_cert}, |
56 content => "include $endpoints_config_path;\n", | 56 content => "include $endpoints_config_path;\n", |
57 is_default => true, | 57 is_default => true, |
58 private_key => $ssl_key ? {'' => undef, default => $ssl_key}, | 58 private_key => $ssl_key ? {'' => undef, default => $ssl_key}, |
59 log => 'access_log_telemetry', | 59 log => 'access_log_telemetry', |
60 require => Concat[$endpoints_config_name], | 60 require => Concat[$endpoints_config_name], |
61 } | 61 } |
62 } | 62 } |
LEFT | RIGHT |