Forge Home

hiera_redis

Redis backend for Hiera

9,424 downloads

9,224 latest version

4.1 quality score

Version information

  • 1.0.4 (latest)
  • 1.0.3
released Aug 20th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'rubyisbeautiful-hiera_redis', '1.0.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add rubyisbeautiful-hiera_redis
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install rubyisbeautiful-hiera_redis --version 1.0.4

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

Documentation

rubyisbeautiful/hiera_redis — version 1.0.4 Aug 20th 2014

Introduction

hiera-redis empowers Hiera to retrieve values from a Redis database.

Supported Redis types:

  • set
  • sorted set
  • list
  • string
  • hash

All types can be JSON or YAML serialized but I don't see anything other than a string type being used for the job.

Configuration

The following options can be specified in hiera.yaml:

Install

gem install hiera-redis

Example

Add some data into your Redis database

set Debian:foo bar

set common:foo baz

hmset pets:kitties Evil black Handsome gray

Configure ~/.puppet/hiera.yaml

What is foo?

$ hiera -c ~/.puppet/hiera.yaml foo

What is bar?

$ hiera -c ~/.puppet/hiera.yaml bar

and the kitties?

$ hiera -c ~/.puppet/hiera.yaml kitties

Related Information

See the hiera-resources documentation for an example of using hiera-redis with serialized strings stored in Redis (JSON and YAML supported).

Contact

  • Author: Adam Kosmin c/o Reliant Security, Inc.
  • Email: akosminATreliantsecurity.com
  • IRC (freenode): windowsrefund