On Tue, Mar 1, 2016 at 3:13 PM, R.I.Pienaar <r...@devco.net> wrote:

>
>
> On 1 Mar 2016, at 19:52, Eric Sorenson <eric.soren...@puppetlabs.com>
> wrote:
>
> I've been thinking about a config file for Facter, which has historically
> not been run-time configurable.
>
> The two problems in front of me that seem applicable are:
>
> * Sometimes, certain facts are just plain bad to collect and users would
> like to prevent them from even being resolved (see FACT-718, FACT-449, ).
> * Some facts are not inherently bad but _are_ expensive and/or change
> infrequently, so preventing them from being resolved every time would be
> beneficial (FACT-348)
>
>
One question I'm curious to get feedback on is whether such a blacklist (or
whitelist?) of facts would be at the top-level-structured-fact basis, or
whether there are compelling use case for it to be more fine-grained.

The per-top-level-structured fact basis would have some nice attributes:
* it's simpler (good unless it's too simple)
* given that one of the goals in skipping some facts, that would align
pretty nicely with the facter 'resolvers' - whereas to support fine-grained
blacklisting of facts might still require *collecting* all the facts, and
just blacklisting at the point of return/reporting.

Similar question (but may not be the same answer) for fact ttl's. Also for
fact ttl's, I'd think we could provide some useful defaults, e.g. osfamily
doesn't change during process lifetime, that sort of thing.

I'd be curious for comments on any of the above.


> Are there other problems you're running into in this area that you'd like
> to see addressed with a "facter.conf"? I'd like to gather all the
> requirements and start up a little Puppet RFC based on them.
>
>
>
> Some individual facts might benefit from configuration.
>
>  - never consider docker*,and,others for ipaddress fact
>

Ah yes, that makes sense. We've had a few requests for fine-tuning
ipaddress fact collection that could possibly be met by a regex along those
lines.

  - ec2 facts IP address to hit
>

Sorry, naive question but I thought the ec2 metadata address was always the
same? It's hardwired in facter today.


>   - default gateway device
>   - override some paths to required binaries
>

What are some of the example use cases for overriding path to binaries? Are
there use cases for overriding path to some of the non-binary files that
facter processes?

>
> Etc, tons of these. So some way that we all agree on to ingest config on a
> per fact basis
>

I like the idea in general, and would love to get more color on the
spectrum of use cases, hence the questions above.

Kylo


>
>
>
> --eric0
>
> --
> 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/6b93869b-83b3-43dc-8784-bd2cf173e54c%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/6b93869b-83b3-43dc-8784-bd2cf173e54c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/3C1D9D77-61CF-49A1-90AB-E7277BB9B636%40devco.net
> <https://groups.google.com/d/msgid/puppet-dev/3C1D9D77-61CF-49A1-90AB-E7277BB9B636%40devco.net?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Kylo Ginsberg | k...@puppetlabs.com | irc: kylo | twitter: @kylog

-- 
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/CALsUZFEZ8arhPooYuv_%2BriofhQnM74aZzG5ZUG0G8cd%3DoscEfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to