Puppet Class: collectd::plugin::tail

Defined in:
manifests/plugin/tail.pp

Overview

Parameters:

  • interval (Any) (defaults to: undef)
  • files (Hash) (defaults to: {})


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/plugin/tail.pp', line 3

class collectd::plugin::tail (
  $interval             = undef,
  Hash $files           = {},
) {
  collectd::plugin { 'tail':
    interval => $interval,
  }

  $defaults = {}

  $files.each |String $resource, Hash $attributes| {
    collectd::plugin::tail::file { $resource:
      * => $defaults + $attributes,
    }
  }
}