How to package Hiera 1.2.1 backends?

50 views
Skip to first unread message

windowsrefund

unread,
May 13, 2013, 12:56:13 PM5/13/13
to puppe...@googlegroups.com
My hiera-redis 1.0.2 gem creates this file:

/var/lib/gems/1.8/gems/hiera-redis-1.0.2/lib/hiera/backend/redis_backend.rb

which appears to not be seen by Hiera 1.2.1 now that it's been packaged as part of a 3.1.1-1puppetlabs1 deb

irb> h = Hiera.new(:config => '/etc/puppet/hiera.yaml')
WARN: Mon May 13 10:12:23 -0400 2013: Cannot load backend redis: no such file to load -- hiera/backend/redis_backend

Can someone point me in the right direction?

Best,
Adam

Andy Parker

unread,
May 13, 2013, 2:51:26 PM5/13/13
to puppe...@googlegroups.com
Hi Adam,

You probably just need to make sure you have brought in rubygems
first. In your irb session just "require 'rubygems'" before you call
Hiera.new.

I think that is all that is happening here, but I may not be properly
understanding the situation you are describing. What do you mean by
"now that it's been packaged as part of a 3.1.1-1puppetlabs1 deb"?
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+...@googlegroups.com.
> To post to this group, send email to puppe...@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Andrew Parker
an...@puppetlabs.com
Freenode: zaphod42
Twitter: @aparker42
Software Developer

Join us at PuppetConf 2013, August 22-23 in San Francisco -
http://bit.ly/pupconf13
Register now and take advantage of the Early Bird discount - save 25%!

windowsrefund

unread,
May 13, 2013, 3:25:05 PM5/13/13
to puppe...@googlegroups.com
I solved this by repacking hiera-redis from a gem to a deb

gem2deb ftw! :)
Reply all
Reply to author
Forward
0 new messages