puppetserver6 and hiera-eyaml-gpg

294 views
Skip to first unread message

Daniel Kinon

unread,
Feb 17, 2019, 7:00:14 AM2/17/19
to Puppet Users
Hello,
    I'm running puppetserver 6.2.0 with hiera-eyaml-gpg but can't seem to get past the following error when I perform a lookup for an encrypted block during a puppet agent run:
~~~
Error: Could not run: cannot load such file -- hiera/backend/eyaml/encryptors/gpg
~~~

Here is the full gem list from puppetserver and all the requisite gems are present (hiera-eyaml, hiera-eyaml-gpg, ruby_gpg [since gpgme fails install]):
~~~
# puppetserver gem list

*** LOCAL GEMS ***

cmath (default: 1.0.0)
csv (default: 1.0.0)
deep_merge (1.0.1)
facter (2.5.1)
fast_gettext (1.1.2)
fileutils (default: 1.1.0)
gettext (3.2.2)
hiera-eyaml (2.1.0)
hiera-eyaml-gpg (0.6)
highline (1.6.21)
hocon (1.2.5)
ipaddr (default: 1.2.0)
jar-dependencies (default: 0.3.12)
jruby-openssl (default: 0.10.0 java)
jruby-readline (default: 1.2.2 java)
json (default: 2.1.0 java)
locale (2.1.2)
mini_portile2 (2.4.0)
multi_json (1.13.1)
psych (default: 3.0.2 java)
puppet-resource_api (1.7.0)
puppetserver-ca (1.2.1)
rake-ant (default: 1.0.4)
rdoc (default: 6.0.1)
ruby_gpg (0.3.2)
scanf (default: 1.0.0)
semantic_puppet (1.0.2)
text (1.3.1)
trollop (2.1.2)
webrick (default: 1.4.2)
~~~

Any ideas on what I might be missing or how to get more verbose output for further troubleshooting?
Thanks!
-Dan

chengkai liang

unread,
Feb 19, 2019, 5:42:07 PM2/19/19
to puppet...@googlegroups.com
You will also need to install hiera-eyaml via /opt/puppetlabs/puppet/bin/gem. Puppetserver only install gem for jruby

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3657e2ed-6e30-477d-bd0c-4dc9e445a034%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Kinon

unread,
Feb 19, 2019, 6:09:33 PM2/19/19
to puppet...@googlegroups.com
Hey Chengkai,
    That was definitely the problem.  I made a bad assumption that `puppetserver gem install` and `/opt/puppetlabs/puppet/bin/gem install` were the same thing.  Everything works perfectly now.
Thanks!
-Dan

Reply all
Reply to author
Forward
0 new messages