Hi Chris,

Much like how installing puppetserver from yum.puppetlabs.com would
leverage the hiera package for hiera support, I need the same as I'm
packaging it in the open build service for opensuse/sles.

I've tried added it to the ruby-load-path in os-settings.conf but that
failed, which kinda expected.

On Fri, Oct 17, 2014 at 9:51 AM, Chris Price <ch...@puppetlabs.com> wrote:
> Hi Darin,
>
> Puppet Server doesn't currently support multiple directories for gem home;
> we try to avoid using gems from the system ruby because we want to make sure
> that all gems are installed via the JRuby interpreter embedded in Puppet
> Server.  This helps us guarantee that the gems will be compatible with
> Puppet Server.
>
> If you set your gem-home back to '/var/lib/puppet/jruby-gems' and then run
> 'puppetserver gem install hiera', I hope that will install it to the desired
> location.
>
> For more info see:
>
> https://github.com/puppetlabs/puppet-server/blob/master/documentation/gems.markdown
>
> Note that we've had a couple of minor issues with the 'puppetserver gem'
> command (see https://tickets.puppetlabs.com/browse/SERVER-24 ), but they
> have workarounds and are fixed in the next release (which should be coming
> out Very Soon Now).
>
> If that doesn't solve your issue, let us know and we can open up a Jira
> ticket to work out a fix.
>
> On Fri, Oct 17, 2014 at 6:41 AM, Darin Perusich <da...@darins.net> wrote:
>>
>> Hello All,
>>
>> What is the syntax for defining multiple gem-home locations in
>> puppetserver.conf? On my systems, OpenSUSE/SLES, Hiera is packaged as
>> a gem and lives under /usr/{lib,lib64}/ruby/gems/$ruby_ver so clients
>> fail with 'Puppet::Parser::AST::Resource failed with error
>> RuntimeError: Hiera terminus not supported without hiera library'
>> unless I set gem-home to the system gem-home. If that's not an option
>> that's fine, but I'll need modify the packaging of puppetserver to set
>> the proper location for gems.
>>
>> How I've tried defining it.,
>> jruby-puppet: {
>>     #gem-home: [ /var/lib/puppet/jruby-gems, /usr/lib64/ruby/gems/2.0.0 ]
>>     #gem-home: [ '/var/lib/puppet/jruby-gems',
>> '/usr/lib64/ruby/gems/2.0.0' ]
>>     gem-home: /usr/lib64/ruby/gems/2.0.0
>> }
>>
>> --
>> Later,
>> Darin
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-dev/CADaviKtL%3DBpD%2B78jh9eLWJM5UpdyJLqhi6nh_Mvpcs2EAXOOHg%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/CAMx1QfKpddUxxf5UdWyJLRtTkQBaHVF-7%3DvE7A86h_t-Sy%2B3Zw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CADaviKsaHu5-ADNaa%2BH%3D2rj_1%3DW_wadADvU8EhGpqXDxSUQJPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to