Hi Jeff On Thursday, May 24, 2012 5:50:03 PM UTC-4, Jeff McCune wrote: > > 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 >
Here is the output for this: 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/ > I installed using MSI file for 2.7.14 version, using default install > > 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. > Oh, I see, now If I run: C:\Windows\system32>facter --puppet udp_status true I got the value, but, now my doubt is, Can I use my custom facts inside my modules?... > > 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? >> > But If I don't stup FACTERLIB, facter on windows agent don't find my custom facts, facter is reading the facts on c:\Program Files (x86)\Puppet Labs\facter\lib\facter, not in the C:\ProgramData\PuppetLabs\var\lib\folder.... > > 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 > > I'll try adding plugingdest in puppet.conf on windows node... If I change this value, Can I mess something else? I need use facter without --puppet... Thanks you Jeff -Jeff > Best regards.. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Q6mQxkOwZTQJ. 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.