Version information
Start using this module
Add this module to your Puppetfile:
mod 'rubyisbeautiful-hiera_redis', '1.0.4'
Learn more about managing modules with a PuppetfileDocumentation
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