Puppet Class: collectd::plugin::memcached

Defined in:
manifests/plugin/memcached.pp

Overview

Parameters:

  • ensure (Any) (defaults to: 'present')
  • instances (Any) (defaults to: {'default' => {'host' => '127.0.0.1', 'port' => 11211 } })
  • interval (Any) (defaults to: undef)


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

class collectd::plugin::memcached (
  $ensure    = 'present',
  $instances = {'default' => {'host' => '127.0.0.1', 'port' => 11211 } },
  $interval  = undef,
) {

  include ::collectd

  validate_hash($instances)

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