This module will install and configure redis server.

Thomas Foster



6,887 latest version

4.5 quality score

Version information

  • 1.0.3 (latest)
  • 1.0.2
  • 1.0.1 (deleted)
  • 1.0.0 (deleted)
released Nov 25th 2015
This version is compatible with:
  • RedHat,CentOS

Start using this module

Tags: redis


nohtyp/redis — version 1.0.3 Nov 25th 2015


Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Usage - Configuration options and additional functionality


This puppet module is to install and configure redis. This module uses a hash to build the conf files.

Module Description

This is a simple puppet module that will configure redis and allow configuraitons using hiera or modifying the defaults using a hash.

Currently, this module will work for RedHat 7 and I will be working on updating with more in the upcoming releases.


This puppet module uses a hash with the defaults from the current version of redis for RedHat 7 family OS. This module is pretty easy to use to manage the redis conf file because it uses the hash to build the file (without the comments). There is no need to update the module if you want to add a new entry to the redis.conf file, all you would need to do is add it to the hash and the next time you apply the module it should exist in the correct file.

There are 2 ways of currently adding to the hash:

  1. Add/Delete/Modify value in params.pp file (This will make any system that applies this module use those settings. Usage: Use this option only if you want to apply the settings to all machines).
  2. In the params.pp file set use_hiera and use_sentinel_hiera parameters to true. This will allow a more flexible configuration for you redis cluster. To create a hash using the hiera data:

Hiera config file for Redis system

Adding value to hash

Removing value from hash (if you don't provide the value then it will not exist in the file)

Release Notes/Contributors/Etc Optional

There is an issue with using hashes in ruby with the manifests and ERB templates. To fix issue just make the key a unique value so that the erb template can parse hash correctly.

Ex: save option for redis:

'save 900' => '1', 'save 300' => '10', 'save 60' => '10000',