2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'manifests/plugin/chain.pp', line 2
class collectd::plugin::chain (
String $chainname = 'Main',
Enum['present', 'absent'] $ensure = 'present',
Collectd::Filter::Target $defaulttarget = 'write',
Array $rules = []
) {
include collectd
$conf_dir = $collectd::plugin_conf_dir
file { "${conf_dir}/99-chain-${chainname}.conf":
ensure => $ensure,
mode => $collectd::config_mode,
owner => $collectd::config_owner,
group => $collectd::config_group,
content => template('collectd/plugin/chain.conf.erb'),
notify => Service[$collectd::service_name],
}
}
|