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

Unified Diff: modules/adblockplus/manifests/log/forwarder.pp

Issue 29339248: Issue 3305 - Introduce adblockplus::log::tracker and ::forwarder (Closed)
Patch Set: Issue 3305 - Fix typos in documentation Created April 7, 2016, 7:29 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/adblockplus/manifests/log.pp ('k') | modules/adblockplus/manifests/log/tracker.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/log/forwarder.pp
diff --git a/modules/adblockplus/manifests/log/forwarder.pp b/modules/adblockplus/manifests/log/forwarder.pp
new file mode 100644
index 0000000000000000000000000000000000000000..4e82e9b52f3a7a7da8f8d46a9b52bae025f847ef
--- /dev/null
+++ b/modules/adblockplus/manifests/log/forwarder.pp
@@ -0,0 +1,40 @@
+# == Class: adblockplus::log::forwarder
+#
+# Additional configuration for forwarding log file information processed with
+# Fluentd and utilized by i.e. adblockplus::log::tracker instances.
+#
+# === Parameters:
+#
+# [*ensure*]
+# Whether the forwarder setup should be 'present' or 'absent', defaults
+# to $adblockplus::log::ensure.
+#
+# [*host*]
+# The hostname of the adblockplus::log::master in this environment.
+#
+# [*port*]
+# The port number for log event packages (TCP) and heartbeat messages (UDP).
+#
+# === Example:
+#
+# class {'adblockplus::log::forwarder':
+# host => 'logmaster.localdomain',
+# port => 24224,
+# }
+#
+class adblockplus::log::forwarder (
+ $ensure = $adblockplus::log::ensure,
+ $host = "log1.$adblockplus::authority",
+ $port = 24224,
+) {
+
+ include adblockplus::log
+ include stdlib
+
+ # See modules/fluent/manifests/config.pp
+ fluent::config {$title:
+ content => template('adblockplus/log/fluentd/forwarder.conf.erb'),
+ ensure => pick($ensure, $adblockplus::log::ensure),
+ name => '80-adblockplus-log-forwarder',
+ }
+}
« no previous file with comments | « modules/adblockplus/manifests/log.pp ('k') | modules/adblockplus/manifests/log/tracker.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld