Puppet Class: collectd::plugin::swap

Defined in:
manifests/plugin/swap.pp

Overview

Parameters:

  • ensure (Any) (defaults to: 'present')
  • interval (Any) (defaults to: undef)
  • reportbydevice (Boolean) (defaults to: false)
  • reportbytes (Boolean) (defaults to: true)
  • valuesabsolute (Boolean) (defaults to: true)
  • valuespercentage (Boolean) (defaults to: false)
  • reportio (Boolean) (defaults to: true)


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

class collectd::plugin::swap (
  $ensure                   = 'present',
  $interval                 = undef,
  Boolean $reportbydevice   = false,
  Boolean $reportbytes      = true,
  Boolean $valuesabsolute   = true,
  Boolean $valuespercentage = false,
  Boolean $reportio         = true,
) {
  include collectd

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