Defined Type: collectd::plugin::nut::ups
- Defined in:
- manifests/plugin/nut/ups.pp
Overview
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'manifests/plugin/nut/ups.pp', line 2
define collectd::plugin::nut::ups (
$ensure = 'present',
) {
include collectd
include collectd::plugin::nut
$conf_dir = $collectd::plugin_conf_dir
file { "${conf_dir}/nut-ups-${name}.conf":
ensure => $ensure,
mode => $collectd::config_mode,
owner => $collectd::config_owner,
group => $collectd::config_group,
content => template('collectd/plugin/nut/ups.conf.erb'),
notify => Service['collectd'],
}
}
|