Hiera with Redis

108 views
Skip to first unread message

Dhaval

unread,
Apr 7, 2015, 5:11:47 AM4/7/15
to puppet...@googlegroups.com
Hello,

how do i add below to redis ?

sudo::configs:
  'admins':
    'content'   : "%admins ALL=(ALL) NOPASSWD: ALL"
    'priority'  : 10

I tried couple of things but not sure how to add array of hashes.

Regards,
D

liu.cy

unread,
Apr 8, 2015, 2:19:07 AM4/8/15
to puppet...@googlegroups.com
do you want to save the hiera data to redis and puppet automatically retrieve data in redis?
#1, ruby have redis module, you can just save parameters into redis in ruby.https://github.com/redis/redis-rb
#2, you can write hiera custom backend to read actual data in any way you want. http://docs.puppetlabs.com/hiera/1/custom_backends.html
Reply all
Reply to author
Forward
0 new messages