On Thu, Jul 28, 2016 at 1:25 AM, Reid Vandewiele <r...@puppet.com> wrote:

> Regardless of the fact that this is on the developer's list, it's worth
> mentioning that from a use-case perspective it may not actually be
> necessary to worry about that too much. Even though the entire contents of
> the directory may be synced (and Michael correct me if I'm wrong about
> this), when it actually comes time to execute external facts Puppet is
> already intelligent enough to execute only certain kinds of scripts on
> Windows, and others on Posix systems. Given that your use case sounds like
> it's just for Windows vs. Linux, this should be sufficient to run facts
> cleanly and return values only for relevant platforms, even though all
> systems will have a copy of all facts including the ones they can't and
> won't evaluate due to platform incompatibility.
>
>
> https://docs.puppet.com/facter/3.1/custom_facts.html#executable-facts-----unix
>
> https://docs.puppet.com/facter/3.1/custom_facts.html#executable-facts-----windows
>

Yes, on POSIX systems we look for executable files, on Windows we use
extensions (so don't give your Windows scripts the executable bit).

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

Reply via email to