crayfishx / hiera-gpg

GPG Backend to HIera
http://github.com/crayfishx/hiera-gpg
Other
101 stars 25 forks source link

cannot load backend #5

Closed awkwords closed 9 years ago

awkwords commented 12 years ago

[root@puppet puppet]# cat hiera.yaml

:backends: - gpg

:logger: console

:hierarchy:

:gpg: :datadir: /etc/puppet/hieradata

[root@puppet puppet]# hiera -c /etc/puppet/hiera.yaml public_registrar WARN: Thu Aug 30 18:48:46 +0000 2012: Cannot load backend gpg: no such file to load -- hiera/backend/gpg_backend nil

[root@puppet puppet]# gem list |grep hiera hiera (0.3.0, 0.2.0) hiera-gpg (1.0.3) hiera-json (0.3.0) hiera-puppet (0.3.0, 0.2.0) rspec-hiera-puppet (0.3.0) [root@puppet puppet]#

any thoughts on why its not finding the backend?

madAndroid commented 11 years ago

@awkwords , I was experiencing the same problem; for me this was happening because the gem was being installed under gem1.9, because of having both rubies 1.9.3 and 1.8.7 installed on the box in question. Running update-alternatives (this was an ubuntu box), pointing gem at the correct version, and then installing the gem under the correct ruby solved the problem for me

hope this helps