| 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'], |
| + } |
| +} |