Puppet Class: collectd::plugin::swap

Defined in:
manifests/plugin/swap.pp

Overview

Parameters:

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


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

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

  include ::collectd

  validate_bool(
    $reportbydevice,
    $reportbytes,
    $valuesabsolute,
    $valuespercentage
  )

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