Issue #1893 has been updated by mbrannigan.

I checked the PATH within the running puppetd process with pargs -e:
<pre>
envp[9]: PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
</pre>

However, PATH is configured in my environment just fine:
<pre>
/bin:/sbin:/usr/bin:/usr/sbin:/opt/csw/bin:/opt/csw/sbin:/usr/sfw/bin:/usr/sfw/sbin:/opt/local/bin:/opt/local/sbin:/opt/pgsql/bin:/usr/ccs/bin
</pre>

It's interesting that puppetd did pick up the MANPATH set within /etc/profile, 
but does not pick up PATH...

>From /etc/profile:
<pre>
MANPATH=/usr/man:/usr/share/man:/opt/csw/man:/opt/csw/share/man:/usr/sfw/man:/usr/sfw/share/man:/opt/local/man:/opt/pgsql/man
export MANPATH
</pre>

>From pargs -e:
<pre>
envp[3]: 
MANPATH=/usr/man:/usr/share/man:/opt/csw/man:/opt/csw/share/man:/usr/sfw/man:/usr/sfw/share/man:/opt/local/man:/opt/pgsql/man
</pre>

It's as if PATH is being overwritten by something within puppetd?

----------------------------------------
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to