On Thu, May 24, 2012 at 1:33 PM, Marco Parra D. <marco.parr...@gmail.com>wrote:

> But my question was can I change the path where puppet copi the custom
> facts?
>

Yes, this is the plugindest puppet agent option.

What is it currently set to?  You can check using puppet agent
--configprint plugindest


> because when I run puppet agent, my custom facts were copied to
> c:\programdata\puppetlabs\**facter\lib\facter
> and facter didn't see it,
>

How did you install Puppet?  Puppet shouldn't be copying custom facts into
this directory, the default location on Windows is
C:\ProgramData\PuppetLabs\puppet\var\lib

Here's a screenshot of the default behavior of the MSI packages published
at https://downloads.puppetlabs.com/windows/

http://links.puppetlabs.com/windows_msi_plugindest.png

In the screenshot, you can see puppet agent downloads and loads plugins
from C:\ProgramData\PuppetLabs\puppet\var\lib, facter doesn't load facts
from here without the --puppet option, and that the plugindest setting is
set to C:\ProgramData\PuppetLabs\puppet\var\lib


> but when I set the variable FACTERLIB on window to:
>
> set FACTERLIB=C:\Program Files (x86)\Puppet Labs\Puppet\facter\lib\facter;
> **C:\ProgramData\PuppetLabs\**puppet\var\lib\facter
>

You really shouldn't have to set FACTERLIB at all.

facter did see the custom fact:
>
> C:\Windows\system32>facter udp_status
>
> C:\Windows\system32>set FACTERLIB=C:\Program Files (x86)\Puppet
> Labs\Puppet\facter\lib\facter;**C:\ProgramData\PuppetLabs\**
> puppet\var\lib\facter
>
> C:\Windows\system32>facter udp_status
> true
>
> is there a way to change that?
>

Yes, this is the plugindest setting in puppet.conf.  Please let me know if
the default behavior is something other than the setting
of  C:\ProgramData\PuppetLabs\puppet\var\lib

-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to