Puppet Class: collectd::plugin::redis
- Defined in:
- manifests/plugin/redis.pp
Overview
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'manifests/plugin/redis.pp', line 2
class collectd::plugin::redis (
$ensure = 'present',
$interval = undef,
$nodes = { 'redis' => {
'host' => 'localhost',
'port' => '6379',
'timeout' => 2000,
}
},
) {
validate_hash($nodes)
collectd::plugin {'redis':
ensure => $ensure,
content => template('collectd/plugin/redis.conf.erb'),
interval => $interval,
}
}
|