Puppet Class: memcached

Inherits:
::memcached::params
Defined in:
manifests/init.pp

Overview

Installs and manages Memcached.

Examples:

Declaring the class

include ::memcached

Listen on specific interfaces

class { '::memcached':
  interface => [
    '127.0.0.1',
    ['::1', 11212],
  ],
}

Enabling SASL on OpenBSD

class { '::memcached':
  package_name => 'memcached-sasl', # Requires SASL-flavoured package
  sasl         => true,
}

Parameters:

  • cache_size (Optional[Integer[0]]) (defaults to: $::memcached::params::cache_size)

    Cache size in megabytes.

  • interface (Optional[Array[Memcached::Interface, 1]]) (defaults to: $::memcached::params::interface)

    List of interfaces to listen on.

  • max_connections (Optional[Integer[0]]) (defaults to: $::memcached::params::max_connections)

    Maximum number of TCP connections.

  • package_name (String) (defaults to: $::memcached::params::package_name)

    The name of the package.

  • port (Optional[Bodgitlib::Port]) (defaults to: $::memcached::params::port)

    TCP and UDP port number.

  • service_name (String) (defaults to: $::memcached::params::service_name)

    The name of the service.

  • sasl (Boolean) (defaults to: false)

    Whether to enable SASL support.

  • user (String) (defaults to: $::memcached::params::user)

    The unprivileged user to run as.

See Also:



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'manifests/init.pp', line 30

class memcached (
  Optional[Integer[0]]                     $cache_size      = $::memcached::params::cache_size,
  Optional[Array[Memcached::Interface, 1]] $interface       = $::memcached::params::interface,
  Optional[Integer[0]]                     $max_connections = $::memcached::params::max_connections,
  String                                   $package_name    = $::memcached::params::package_name,
  Optional[Bodgitlib::Port]                $port            = $::memcached::params::port,
  String                                   $service_name    = $::memcached::params::service_name,
  Boolean                                  $sasl            = false,
  String                                   $user            = $::memcached::params::user,
) inherits ::memcached::params {

  contain ::memcached::install
  contain ::memcached::config
  contain ::memcached::service

  Class['::memcached::install'] -> Class['::memcached::config']
    ~> Class['::memcached::service']
}