Hi Marco,

On Thu, May 24, 2012 at 7:35 AM, mparrad <marco.parr...@gmail.com> wrote:
> Hi guys,
> I've been working with Puppet on Windows 2.7.14, I trying to use my own
> custom facts, but I have to put in on Windows Agent machine manually, I
> tried using pluginsync=true, and I put my *.rb files on <My
> Moudle>/lib/facter and It works but It only copy the files to
> C:\ProgramData\PuppetLabs\puppet\var\lib\facter, and facter on windows
> machine didn't find this facts, I have to put a FACTERLIB variable on
> windows machine, pointing to both directories
>
> FACTERLIB=C:\Program Files (x86)\Puppet
> Labs\Puppet\facter\lib\facter;C:\ProgramData\PuppetLabs\puppet\var\lib\facter
>
> puppet agent facter search facters on FACTERLIB=C:\Program Files
> (x86)\Puppet Labs\Puppet\facter\lib\facter
>
> How can I change this? May I change the pluginsync copy the customs facts to
> C:\Program Files (x86)\Puppet Labs\Puppet\facter\lib\facter instead
> C:\ProgramData\PuppetLabs\puppet\var\lib\facter
>
> I tried changing on C:\ProgramData\PuppetLabs\puppet\etc\puppet.conf adding
> factpath to C:\Program Files (x86)\Puppet Labs\Puppet\facter\lib\facter, but
> the files didn't copy from master to the windows agent...
>
> Any directions will be appreciated, thanks in advance..
>
> 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/-/rYHK948k2J4J.
> 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.

After puppet pluginsyncs, puppet should have access to those custom
facts without modifying the environment.

Note however, if you are running facter standalone, and want facter to
include puppet-specific facts, e.g. puppetversion and pluginsync'ed
facts, then you have to specify `facter --puppet`. Doing so, will
cause facter to add `Puppet[:libdir]` to facter's $LOAD_PATH.

Josh

-- 
Josh Cooper
Developer, Puppet Labs

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