Version information
This version is compatible with:
- RedHat, Debian, Ubuntu
Start using this module
Add this module to your Puppetfile:
mod 'counsyl-memcached', '0.9.3'
Learn more about managing modules with a PuppetfileDocumentation
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
Dependencies
- counsyl/sys (>= 0.9.15)
Copyright 2013-2015 Counsyl, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.