Puppet Class: collectd::plugin::tail
- Defined in:
- manifests/plugin/tail.pp
Overview
Tail plugin collectd.org/wiki/index.php/Plugin:Tail
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,
}
}
}
|