On Tue, Jan 12, 2016 at 10:20 PM, Rudy Gevaert <rudy.geva...@gmail.com>
wrote:

> Hi,
>
> I'm trying to set up puppetserver for the first time.  I
> installed puppetserver 2.2.1-1puppetlabs1 on a trusty server with the
> Debian package.  I then installed r10k with 'puppetserver gem install r10k
> --no-ri --no-rdoc'.
>
> However the r10k binary is not in my path. It's
> in /opt/puppetlabs/server/data/puppetserver/jruby-gems/bin/r10k.  So the
> gem got installed.
>
> Running that binary gives me:
>
> root@puppet:/opt/puppetlabs#
> /opt/puppetlabs/server/data/puppetserver/jruby-gems/bin/r10k
> /usr/bin/env: jruby: No such file or directory
>
> Installing jruby from the ubuntu repos doesn't get it working.
> /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems.rb:777:in
> `report_activate_error': Could not find RubyGem r10k (>= 0) (Gem::LoadError)
>
> I can't find any information about setting up jruby regarding Puppetserver.
>
> How can I fix this issue?
>



Hi Rudy,

I think that what you want to do is install r10k via the *system* `gem
install ...` command and not `puppetserver gem install ....`.

Even though r10k runs on the master, it runs as a separate process (not
inside of Puppet Server) and uses the system ruby (likely MRI).

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF-bMBd%3D8H70tScEV2Cp_UQxJ-sZWU%3DOJh-mMBhvgegH4ZpeEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to