Puppet Class: collectd::plugin::ethstat

Defined in:
manifests/plugin/ethstat.pp

Overview

Parameters:

  • ensure (Any) (defaults to: 'present')
  • interfaces (Any) (defaults to: [])
  • maps (Any) (defaults to: [])
  • mappedonly (Any) (defaults to: false)
  • interval (Any) (defaults to: undef)


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

class collectd::plugin::ethstat (
  $ensure     = 'present',
  $interfaces = [],
  $maps       = [],
  $mappedonly = false,
  $interval   = undef,
) {

  include ::collectd

  validate_array($interfaces,$maps)
  validate_bool($mappedonly)

  collectd::plugin { 'ethstat':
    ensure   => $ensure,
    content  => template('collectd/plugin/ethstat.conf.erb'),
    interval => $interval,
  }
}