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

Side by Side Diff: modules/adblockplus/manifests/log/processor.pp

Issue 29338675: Issue 3694 - Introduce class adblockplus::log::processor and role logprocessor (Closed)
Patch Set: Issue 3694 - Addressing feedback from code-review Created March 21, 2016, 4:44 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « hiera/roles/logprocessor.yaml ('k') | modules/private-stub/hiera/hosts.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # == Class: adblockplus::log::processor
2 #
3 # A mixin class that defines a set of additional Hiera keys for Fluentd,
4 # each of which is examined using function hiera_hash(). This allows for
5 # fine-tuning the setup via YAML, but will only be supported as long as
6 # Fluentd is actually the sofware behind adblockplus::log resources. This
7 # is unlikely to change though, or at least there are no such plans yet.
8 #
9 # === Hiera:
10 #
11 # [*fluent::configs*]
12 # A hash of zero or more $title => $parameters items for the definition
13 # of fluentd::config resources via YAML.
14 #
15 # [*fluent::gems*]
16 # A hash of zero or more $title => $parameters items for the definition
17 # of fluent_gem resources via YAML.
18 #
19 # [*fluent::plugins*]
20 # A hash of zero or more $title => $parameters items for the definition
21 # of fluent::plugin resources via YAML.
22 #
23 # === Examples:
24 #
25 # # Does not imply inclusion of any other adblockplus::* manifest
26 # include adblockplus::log::processor
27 #
28 class adblockplus::log::processor {
29
30 $fluent_configs = hiera_hash('fluent::configs', {})
31 create_resources('fluent::config', $fluent_configs)
32
33 $fluent_gems = hiera_hash('fluent::gems', {})
34 create_resources('fluent::gem', $fluent_gems)
35
36 $fluent_plugins = hiera_hash('fluent::plugins', {})
37 create_resources('fluent::plugin', $fluent_plugins)
38 }
OLDNEW
« no previous file with comments | « hiera/roles/logprocessor.yaml ('k') | modules/private-stub/hiera/hosts.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld