Forge Home

redis

This module will install and configure redis server.

8,497 downloads

7,815 latest version

4.5 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.

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:

Start using this module

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

Add this module to your Puppetfile:

mod 'nohtyp-redis', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add nohtyp-redis
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install nohtyp-redis --version 1.0.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
Tags: redis

Documentation

nohtyp/redis — version 1.0.3 Nov 25th 2015

redis

Table of Contents

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

Overview

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.

Usage

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',