This updated version allows for improved interaction with Redis hashes
https://github.com/reliantsecurity/hiera-redis
http://rubygems.org/gems/hiera-redis
Now it is possible to use the hiera() function to lookup a value from
a corresponding key within a Redis hash like so:
$coffee = hiera(''coffee'', nil,
''beverages:hot'')
where the redis key had been created as a hash like so:
hset beverages:hot coffee "light and sweet"
assuming we added a few more hot beverages like this....
hmset beverages:hot tea green "hot chocolate" "and marsh
mellows"
we can get a hash of all hot beverages with
$hot_beverages = hiera_hash(''hot'')
which assumes the "beverages" scope is part of Hiera''s
hierarchy
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.