OLD | NEW |
| (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 } | |
OLD | NEW |