memcached

Manage memcached via Puppet

Oleg Ginzburg

olevole

5,523 downloads

5,439 latest version

3.7 quality score

Version information

  • 2.8.2 (latest)
  • 2.8.1
released Nov 12th 2016
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.0.0 < 5.0.0
  • RedHat, CentOS, OracleLinux, Scientific, Debian, Ubuntu, Windows, FreeBSD

Start using this module

Documentation

olevole/memcached — version 2.8.2 Nov 12th 2016

puppet-memcached Build Status

Manage memcached via Puppet

About

This is fork of https://github.com/saz/puppet-memcached with additional support for FreeBSD platform

Fork reason: the lack interest of the author to support FreeBSD OS: https://github.com/saz/puppet-memcached/pull/79

How to use

Use roughly 90% of memory

    class { 'memcached': }

Set a fixed memory limit in MB

    class { 'memcached':
      max_memory => 2048
    }

Use 12% of available memory

    class { 'memcached':
      max_memory => '12%'
    }

Other class parameters

  • $package_ensure = 'present'
  • $logfile = '/var/log/memcached.log'
  • $pidfile = '/var/run/memcached.pid' (Debian family only, set to false to disable pidfile)
  • $max_memory = false
  • $item_size = false
  • $lock_memory = false (WARNING: good if used intelligently, google for -k key)
  • $listen_ip = '0.0.0.0'
  • $tcp_port = 11211
  • $udp_port = 11211
  • $manage_firewall = false
  • $user = '' (OS specific setting, see params.pp)
  • $max_connections = 8192
  • $verbosity = undef
  • $unix_socket = undef
  • $install_dev = false (TRUE if 'libmemcached-dev' package should be installed)
  • $processorcount = $::processorcount
  • $service_restart = true (restart service after configuration changes, false to prevent restarts)
  • $use_sasl = false (start memcached with SASL support)
  • $large_mem_pages = false (try to use large memory pages)