2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'manifests/plugin/write_riemann.pp', line 2
class collectd::plugin::write_riemann (
Array[Collectd::Write_riemann::Node] $nodes,
Enum['present', 'absent'] $ensure = 'present',
Boolean $manage_package = $collectd::manage_package,
Array[String[1]] $tags = [],
Hash[String[1],String[1]] $attributes = {},
) {
include collectd
if $facts['os']['family'] == 'RedHat' {
if $manage_package {
package { 'collectd-write_riemann':
ensure => $ensure,
}
}
}
collectd::plugin { 'write_riemann':
ensure => $ensure,
content => epp('collectd/plugin/write_riemann.conf.epp'),
}
}
|