Puppet Class: collectd::plugin::dns
- Defined in:
- manifests/plugin/dns.pp
Overview
Class: collectd::plugin::dns
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'manifests/plugin/dns.pp', line 3
class collectd::plugin::dns (
Enum['present','absent'] $ensure = 'present',
Optional[Stdlib::IP::Address] $ignoresource = undef,
String $interface = 'any',
Optional[String] $interval = undef,
$manage_package = undef,
$package_name = 'collectd-dns',
Variant[String,Boolean] $selectnumericquerytypes = true,
) {
include collectd
$_manage_package = pick($manage_package, $collectd::manage_package)
if $_manage_package {
package { 'collectd-dns':
ensure => $ensure,
name => $package_name,
}
}
collectd::plugin { 'dns':
ensure => $ensure,
content => template('collectd/plugin/dns.conf.erb'),
interval => $interval,
}
}
|