Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: modules/adblockplus/manifests/telemetry.pp

Issue 29329669: Issue 3261 - Introduce module adblockplus::telemetry (Closed)
Left Patch Set: Created Nov. 3, 2015, 4:46 a.m.
Right Patch Set: Issue 3261 - Rename /submit/{filter-hit-statistics => adblockplus} Created Nov. 13, 2015, 9:29 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « hiera/roles/telemetryserver.yaml ('k') | modules/adblockplus/manifests/telemetry/endpoint.pp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld