Puppet Class: collectd::plugin::memcached

Defined in:
manifests/plugin/memcached.pp

Overview

Parameters:

  • ensure (Any) (defaults to: 'present')
  • instances (Hash) (defaults to: { 'default' => { 'host' => 'localhost', 'address' => '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
18
19
20
# File 'manifests/plugin/memcached.pp', line 2

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

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