Puppet Class: collectd::plugin::threshold

Defined in:
manifests/plugin/threshold.pp

Overview

Parameters:

  • ensure (Enum['present', 'absent']) (defaults to: 'present')
  • interval (Optional[Integer]) (defaults to: undef)
  • types (Array[Collectd::Threshold::Type]) (defaults to: [])
  • plugins (Array[Collectd::Threshold::Plugin]) (defaults to: [])
  • hosts (Array[Collectd::Threshold::Host]) (defaults to: [])


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/plugin/threshold.pp', line 2

class collectd::plugin::threshold (
  Enum['present', 'absent']          $ensure   = 'present',
  Optional[Integer]                  $interval = undef,
  Array[Collectd::Threshold::Type]   $types    = [],
  Array[Collectd::Threshold::Plugin] $plugins  = [],
  Array[Collectd::Threshold::Host]   $hosts    = [],
) {
  include collectd

  collectd::plugin { 'threshold':
    ensure   => $ensure,
    content  => epp('collectd/plugin/threshold.conf.epp'),
    interval => $interval,
  }
}