Skip to content

configr/puppet-redis

 
 

Repository files navigation

Redis Module for Puppet

Build Status

This module installs and manages a Redis server. All redis.conf options are accepted in the parameterized class.

Operating System

Tested on CentOS 6.3 and Debian Squeeze.

Quick Start

Use the default parameters:

class { 'redis': }

To change the port and listening network interface:

class { 'redis':
  conf_port => '6379',
  conf_bind => '0.0.0.0',
}

Parameters

Check the init.pp file for a complete list of parameters accepted.

  • custom sysctl

To enable and set important Linux kernel sysctl parameters as described in the Redis Admin Guide - use the following configuration option:

class { 'redis':
  system_sysctl => true
}

By default, this sysctl parameter will not be enabled. Furthermore, you will need the sysctl module defined in the Modulefile file.

  • service restart

If you need to execute a controlled restart of redis after changes due master/slave relationships to avoid that both are restarted at the same time use the parameter below.

class { 'redis':
  service_restart => false
}

By default service restart is true.

Copyright and License

Copyright (C) 2012 Felipe Salum

Felipe Salum can be contacted at: fsalum@gmail.com

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.

About

Redis Server Module for Puppet

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Puppet 90.5%
  • Ruby 9.5%