Puppet Class: collectd::plugin::apache
- Defined in:
- manifests/plugin/apache.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/apache.pp', line 2
class collectd::plugin::apache (
$ensure = present,
$instances = { 'localhost' => { 'url' => 'http://localhost/mod_status?auto' } },
$interval = undef,
) {
validate_hash($instances)
if $::osfamily == 'RedHat' {
package { 'collectd-apache':
ensure => $ensure,
}
}
collectd::plugin {'apache':
ensure => $ensure,
content => template('collectd/plugin/apache.conf.erb'),
interval => $interval,
}
}
|