Puppet Class: collectd::plugin::cpu
- Defined in:
- manifests/plugin/cpu.pp
Overview
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'manifests/plugin/cpu.pp', line 2
class collectd::plugin::cpu (
$ensure = 'present',
$reportbystate = true,
$reportbycpu = true,
$valuespercentage = false,
$reportnumcpu = false,
$interval = undef,
) {
include ::collectd
validate_bool(
$reportbystate,
$reportbycpu,
$valuespercentage,
$reportnumcpu,
)
collectd::plugin { 'cpu':
ensure => $ensure,
content => template('collectd/plugin/cpu.conf.erb'),
interval => $interval,
}
}
|