1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
define collectd::plugin::powerdns::recursor (
Enum['present', 'absent'] $ensure = 'present',
Optional[String[1]] $socket = undef,
Array[String[1]] $collect = [],
) {
include collectd::plugin::powerdns
include collectd
concat::fragment{ "collectd_plugin_powerdns_conf_recursor_${name}":
order => '51',
content => epp('collectd/plugin/powerdns/recursor.conf.epp', {
'name' => $name,
'socket' => $socket,
'collect' => $collect,
}),
target => "${collectd::plugin_conf_dir}/powerdns-config.conf",
}
}
|