OLD | NEW |
(Empty) | |
| 1 # == Class: adblockplus::logmaster |
| 2 # |
| 3 # A server setup to collect and pre-process (i.e. anonymize and combine) |
| 4 # log files using Logstash (https://logstash.net/) pipelines. |
| 5 # |
| 6 class adblockplus::logmaster { |
| 7 |
| 8 include adblockplus |
| 9 realize(File['/var/adblockplus']) |
| 10 |
| 11 # Mapping hiera values explicitly becomes obsolete with Puppet 3.x |
| 12 class {'logstash': |
| 13 contrib => hiera('logstash::contrib', false), |
| 14 ensure => hiera('logstash::ensure', 'running'), |
| 15 pipelines => hiera('logstash::pipelines', {}), |
| 16 version => hiera('logstash::version', '1.4'), |
| 17 } |
| 18 |
| 19 # Default location for output files in Logstash pipeline configurations |
| 20 file {'/var/adblockplus/log': |
| 21 before => Class['logstash'], |
| 22 group => 'logstash', |
| 23 mode => 0775, |
| 24 require => File['/var/adblockplus'], |
| 25 } |
| 26 } |
OLD | NEW |