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

Unified Diff: modules/adblockplus/manifests/logmaster.pp

Issue 29329617: Issue 2864 - Introduce class adblockplus::logmaster (Closed)
Patch Set: Created Nov. 2, 2015, 2:34 p.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/init.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/logmaster.pp
diff --git a/modules/adblockplus/manifests/logmaster.pp b/modules/adblockplus/manifests/logmaster.pp
new file mode 100644
index 0000000000000000000000000000000000000000..85c7c2150b4862ba81824b32addcc77c116d95ae
--- /dev/null
+++ b/modules/adblockplus/manifests/logmaster.pp
@@ -0,0 +1,26 @@
+# == Class: adblockplus::logmaster
+#
+# A server setup to collect and pre-process (i.e. anonymize and combine)
+# log files using Logstash (https://logstash.net/) pipelines.
+#
+class adblockplus::logmaster {
+
+ include adblockplus
+ realize(File['/var/adblockplus'])
+
+ # Mapping hiera values explicitly becomes obsolete with Puppet 3.x
+ class {'logstash':
+ contrib => hiera('logstash::contrib', false),
+ ensure => hiera('logstash::ensure', 'running'),
+ pipelines => hiera('logstash::pipelines', {}),
+ version => hiera('logstash::version', '1.4'),
+ }
+
+ # Default location for output files in Logstash pipeline configurations
+ file {'/var/adblockplus/log':
+ before => Class['logstash'],
+ group => 'logstash',
+ mode => 0775,
+ require => File['/var/adblockplus'],
+ }
+}
« no previous file with comments | « modules/adblockplus/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld