On Thu, Jul 17, 2014 at 2:37 PM, Jim Richard <jimr6...@gmail.com> wrote:

> Facter on a Windows 2008R2 server is doing something weird. Version of
> facter is 2.0.2.
>
> If I, from the Puppet command prompt, do a "echo %Path%", I see exactly
> what I expect. But if I say "facter Path", it shows me all of the Puppet
> added path stuff twice, ie. the output is almost twice as much text.
>
> Oddly, the original pre: puppet agent install path data is still reported
> by facter, correctly, not doubled up, but all of the path items added by
> the puppet agent install process show up twice when I issue a "facter
> Path".
>
> My "real" path:
>
>
> E:\oracle\product\11.2.0\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Unix;E:\oracle\product\11.2.0\db_1\OPatch;C:\jdk_release\bin;F:\RATEWARE
>

> What facter thinks is my Path:
>
> C:\Program Files (x86)\Puppet Labs\Puppet\puppet\bin;C:\Program Files
> (x86)\Puppet Labs\Puppet\facter\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\hiera\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\sys\ruby\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\sys\tools\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\puppet\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\facter\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\hiera\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\bin;C:\Program Files (x86)\Puppet
> Labs\Puppet\sys\ruby\bin;C:\ProgramFiles(x86)\PuppetLabs\Puppet\sys\tools\bin;E:\oracle\product\11.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Unix;E:\oracle\product\11.2.0\db_1\OPatch;C:\jdk_release\bin;F:\RATEWARE
>
>
> Any ideas what might cause this?
>

Note the first thing that facter.bat / puppet.bat runs is a call to
environment.bat, which ensures that the console has all of the right
environment variables set and it updates PATH as well.

Why it is doubling up is another issue entirely.

Try this - open a command line and call:
echo %PATH%
environment.bat
echo %PATH%

Oddly enough, I don't see  C:\Program Files (x86)\Puppet Labs\Puppet\bin in
your original path as I might expect to see.

How did you install facter on your Windows system?

>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/97685237-6523-40a3-81ad-38f98df86593%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/97685237-6523-40a3-81ad-38f98df86593%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Rob Reynolds
Developer, Puppet Labs

*Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
20-24 in San Francisco*
*Register by July 31st to take advantage of the Early Bird discount
<https://puppetconf2014.eventbrite.com/?discount=EarlyBird> **--**save $249!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK4OMSctCj7b9AeqQb4bO0Q-_W1dDTm47pWEp1OjWjjcjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to