Issue #5383 has been updated by Jeff McCune.
Actually, I'm just wrong. There's some other bug when puppet is installed in
site_ruby. envpuppet is doing the right thing and unshifting into the ruby
search path:
envpuppet ruby -e 'puts $:' 2010-11-23 15:06:05 jeff ttys008
/Users/jeff/src/puppet/lib
/Users/jeff/src/facter/lib
/Users/jeff/src/puppet-scaffold/lib
/Users/jeff/src/puppet-module-tool/lib
/Users/jeff/customization/lib/ruby
/Library/Ruby/Site/1.8
/Library/Ruby/Site/1.8/powerpc-darwin10.0
/Library/Ruby/Site/1.8/universal-darwin10.0
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8/universal-darwin10.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin10.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0
Something else must be happening where files aren't matching up between the two
possible search paths.
----------------------------------------
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.