Issue #5383 has been reported by Jeff McCune.

----------------------------------------
Feature #5383: envpuppet script should allow puppet in site_ruby
https://projects.puppetlabs.com/issues/5383

Author: Jeff McCune
Status: Unreviewed
Priority: Normal
Assignee: Jeff McCune
Category: ext
Target version: 
Affected Puppet version: 2.6.3
Keywords: envpuppet, ext
Branch: 


Overview
========

The envhelper script shipped in 2.6.3 does not work properly when Puppet is 
installed in site_ruby and the desired Puppet version is outside of site_ruby, 
e.g. ~/src/puppet/lib

Details
=======

When Puppet 2.6.3 is installed from RPM on a CentOS 5.5 machine and envpuppet 
is being used with Puppet 0.25.5 in ~/src/puppet the following error is 
returned:

    info: Autoloaded module puppetlabs
    info: Autoloaded file puppetlabs/clock from module puppetlabs
    Could not find a default provider for file

Puppet must be removed from the system ruby library location using

    rpm -e puppet

Resolution
==========

According to http://ruby-doc.org/docs/ProgrammingRuby/html/rubyworld.html the 
RUBYLIB environment variable provides "Additional search path for Ruby 
programs"  The -I (uppercase vowel i) option prepends to the search path.  
envpuppet should be modified to use -I rather than RUBYLIB


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to