hiera_redis

Redis backend for Hiera

Bryan Taylor

rubyisbeautiful

8,628 downloads

8,442 latest version

4.1 quality score

Version information

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

Start using this module

Tags: hiera, redis

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