[Puppet Users] Re: Facter path issue

2014-07-18 Thread Jim Richard
c('C:\Windows\system32\cmd.exe /C "reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path""') my_fact.rpartition('REG_EXPAND_SZ').slice(2).strip end end Thanks Rob ! On Thursday, July 17, 2014 3:37:03 PM UTC-4, Jim

Re: [Puppet Users] Facter path issue

2014-07-18 Thread Jim Richard
l applied stuff with a regex? <https://lh3.googleusercontent.com/-1qTwaiZxz0s/U8k9oPOJYXI/B-k/YXycPbeOk9o/s1600/Screen+Shot+2014-07-18+at+11.26.54+AM.png> On Thursday, July 17, 2014 6:12:26 PM UTC-4, Rob Reynolds wrote: > > > On Thu, Jul 17, 2014 at 2:37 PM, Jim Rich

[Puppet Users] Facter path issue

2014-07-17 Thread Jim Richard
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