Forge Home

memcached

Puppet module for installing and configuring memcached

10,239 downloads

9,482 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.9.3 (latest)
  • 0.9.2 (deleted)
released Mar 31st 2015
This version is compatible with:
  • RedHat, Debian, Ubuntu

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'counsyl-memcached', '0.9.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add counsyl-memcached
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install counsyl-memcached --version 0.9.3

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

counsyl/memcached — version 0.9.3 Mar 31st 2015

memcached

This Puppet module provides classes for managing Memcached and related packages.

Classes

memcached

By default, inclusion of this class installs memcached and enables its service:

include memcached

Further customization may be done via class parameters, for example to purge the package, set the ensure parameter to absent:

class { 'memcached':
  ensure => 'absent',
}

To prevent the memcached service from starting on boot, set the service_enable parameter to false:

class { 'memcached':
  service_enable => false,
}

memcached::config

By default, the memcached class does not modify the configuration file used by Linux platforms. Customizations of this file are done with the memcached::config class. For example, to allow connections from beyond the localhost you'd set the listen parameter:

class { 'memcached::config':
  listen => '0.0.0.0',
}

To change the maximum amount of memory used by memcached to one gigabyte (1024 megabytes), you'd set the cachesize parameter:

class { 'memcached::maxsize':
  cachesize => 1024,
}

The full list of configuration parameters, which correspond to directly to the memcached command-line options, are:

  • port
  • user
  • cachesize
  • maxconn
  • listen
  • logfile
  • maxsize

memcached::devel

Installs the memcached development headers package for the platform.

memcached::iptables

Sets up a firewall rule allowing external access to the Memcached instance -- use of this class requires the puppetlabs-firewall module and configuring the listen parameter in memcached::config.

memcached::lib

Installs the libMemcached library package.

memcached::lib::devel

Installs the libMemcached development headers package.

memcached::python

Installs the system package for python-memcached.

License

Apache License, Version 2.0

Contact

Justin Bronn justin@counsyl.com

Support

Please log tickets and issues at https://github.com/counsyl/puppet-memcached