OLD | NEW |
| (Empty) |
1 # == Class: adblockplus::log::forwarder | |
2 # | |
3 # Additional configuration for forwarding log file information processed with | |
4 # Fluentd and utilized by i.e. adblockplus::log::tracker instances. | |
5 # | |
6 # === Parameters: | |
7 # | |
8 # [*ensure*] | |
9 # Whether the forwarder setup should be 'present' or 'absent', defaults | |
10 # to $adblockplus::log::ensure. | |
11 # | |
12 # [*host*] | |
13 # The hostname of the adblockplus::log::master in this environment. | |
14 # | |
15 # [*port*] | |
16 # The port number for log event packages (TCP) and heartbeat messages (UDP). | |
17 # | |
18 # === Example: | |
19 # | |
20 # class {'adblockplus::log::forwarder': | |
21 # host => 'logmaster.localdomain', | |
22 # port => 24224, | |
23 # } | |
24 # | |
25 class adblockplus::log::forwarder ( | |
26 $ensure = $adblockplus::log::ensure, | |
27 $host = "log1.$adblockplus::authority", | |
28 $port = 24224, | |
29 ) { | |
30 | |
31 include adblockplus::log | |
32 include stdlib | |
33 | |
34 # See modules/fluent/manifests/config.pp | |
35 fluent::config {$title: | |
36 content => template('adblockplus/log/fluentd/forwarder.conf.erb'), | |
37 ensure => pick($ensure, $adblockplus::log::ensure), | |
38 name => '80-adblockplus-log-forwarder', | |
39 } | |
40 } | |
OLD | NEW |