Issue #22636 has been updated by John Julien.
Submitted https://github.com/puppetlabs/facter/pull/536 ---------------------------------------- Feature #22636: Make facter external facts more extensible https://projects.puppetlabs.com/issues/22636#change-97837 * Author: John Julien * Status: Unreviewed * Priority: Normal * Assignee: John Julien * Category: settings * Target version: 1.7.x * Keywords: * Branch: * Affected Facter version: ---------------------------------------- This is kind of an add on to https://projects.puppetlabs.com/issues/2157 Right now there are default directories that facter will search for external facts. The user can also optionally provide a command line argument to override this directory. There really is no easy way to append to the list of external directories though, just override. This could pose a problem for https://projects.puppetlabs.com/issues/9546. If a user has facts in /etc/facter/fact.d on systems, that they are relying during their puppet run, if puppet uses the override method to get its external pluginsync facts directory in, then the /etc/facter/fact.d facts will no longer be available. The only way I can see to allow another program like puppet to append to the ext fact directories is to write a fact loader in puppet and set it to Facter::Util::Config.ext_fact_loader. It would be much nicer if there was just a single method puppet could call to have any directories desired automatically appended to the list. The goal is to be able to run code like this: <pre><code class="ruby"> Facter::Util::Config.external_facts_dirs << Puppet[:extfactdir] </code></pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
