Issue #1893 has been updated by mbrannigan.
Status changed from Rejected to Re-opened
I put the following into puppet.conf on the client:
<pre>
[main]
path =
/bin:/usr/bin:/sbin:/usr/sbin:/usr/ccs/bin:/opt/local/bin:/opt/csw/bin
[puppetd]
ignorecache = true
server = HOSTNAME
</pre>
I still have the same message:
<pre>
Jan 27 11:10:27 svs030 puppetd[4749]: [ID 702911 daemon.error] Could not
prefetch package provider 'gem': Could not list gems: Execution of 'no
gem in /bin /sbin /usr/bin /usr/sbin /usr/local/sbin /usr/local/bin
list --local' returned 1:
</pre>
I also tried changing /etc/puppet/puppet.conf to read like this with the same
result:
<pre>
[puppetd]
ignorecache = true
server = HOSTNAME
path =
/bin:/usr/bin:/sbin:/usr/sbin:/usr/ccs/bin:/opt/local/bin:/opt/csw/bin
</pre>
----------------------------------------
Feature #1893: Package resource unable to find gem binary in alternate path
http://projects.reductivelabs.com/issues/1893
Author: mbrannigan
Status: Re-opened
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Unknown
Affected version: 0.24.7
Keywords:
In our environment, ruby is installed under /opt/local/bin. When I use the gem
provider, I get the following error message:
<pre>
Jan 26 11:17:37 HOST puppetd[25024]: [ID 702911 daemon.error] Could not
prefetch package provider 'gem': Could not list gems: Execution of 'no gem
in /bin /sbin /usr/bin /usr/sbin /usr/local/sbin /usr/local/bin list --local'
returned 1:
</pre>
Everything is fine if I create a symlinks for /opt/local/bin/ruby and
/opt/local/bin/gem in /usr/local/bin. /opt/local/bin is in the system PATH.
Would it be possible to have a configuration option to provide a search path
for puppetd or perhaps a path attribute on the Package resource?
I tried a few things as a work-around and I can't seem to munge the search path
for the puppetd process.
Thanks!
--- Mike Brannigan
----------------------------------------
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---