Puppet Class: collectd::plugin::chain
- Defined in:
- manifests/plugin/chain.pp
Overview
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'manifests/plugin/chain.pp', line 2
class collectd::plugin::chain (
$chainname = 'Main',
$ensure = 'present',
$defaulttarget = 'write',
$rules = []
) {
include ::collectd
$conf_dir = $collectd::plugin_conf_dir
file { "${conf_dir}/99-chain-${chainname}.conf":
ensure => $ensure,
mode => '0640',
owner => 'root',
group => $collectd::root_group,
content => template('collectd/plugin/chain.conf.erb'),
notify => Service['collectd'],
}
}
|