puppet-decrypt gem Installation Issues

36 views
Skip to first unread message

Tito Valentin

unread,
Oct 14, 2014, 1:45:13 PM10/14/14
to puppet...@googlegroups.com

I am working on setting up puppet-decrypt. I downloaded the following two files from rubygems.org:

encryptor 
puppet-decrypt

I have installed them both as follows since our servers are not allowed to communicate outside of our network:

gem install /tmp/encryptor-1.3.0.gem 
gem install /tmp/puppet-decrypt-0.2.0.gem


After installing, the documentation states that I need to add the $RUBYLIB directory to my profile. So, I have gone through root's .bash_profile and added the following entry:

export RUBYLIB=/opt/puppet/lib:$RUBYLIB

After sourcing my profile, I try to verify that the gem is installed by running the following:

puppet help crypt

However, I get the following error:

[user1@testbed ~]# puppet help crypt 
Error: Could not load help for the face crypt. 
Please check the error logs for more information.
Detail: "Could not find Puppet Face crypt"
Error: Try 'puppet help help help' for usage

That error looks like it can't find the installation of encryptor or puppet-decrypt. However, if I check for the gems, I do see them in the system:

[user1@testbed gems]# gem list --local | egrep "encryptor|decrypt" 
encryptor (1.3.0) 
puppet-decrypt (0.2.0)

What could I be missing to get this gem going in order to start encrypting data?

Resource links:

puppet-decrypt = https://rubygems.org/gems/puppet-decrypt 
encryptor = https://rubygems.org/gems/encryptor

Felix Frank

unread,
Nov 3, 2014, 1:08:56 PM11/3/14
to puppet...@googlegroups.com
*sigh* gems are always such a ton of fun.

Things you could check:

* gem env
-> see which ruby is used

* head `which puppet`
-> see which ruby is used

* ruby -e 'puts $:'
-> see whether the gems are in the path

For the last step, be sure to use the ruby that Puppet is using.

HTH,
Felix
Reply all
Reply to author
Forward
0 new messages