Issue #22636 has been updated by Adrien Thebo. Status changed from Accepted to Merged - Pending Release Assignee deleted (John Julien) Target version changed from 1.7.x to 2.0.0 Branch set to https://github.com/puppetlabs/facter/pull/536 Affected Facter version set to 1.7.3
Merged into master in 6f19eee; this should be released in 2.0.0. ---------------------------------------- Feature #22636: Make facter external facts more extensible https://projects.puppetlabs.com/issues/22636#change-98765 * Author: John Julien * Status: Merged - Pending Release * Priority: Normal * Assignee: * Category: settings * Target version: 2.0.0 * Keywords: * Branch: https://github.com/puppetlabs/facter/pull/536 * Affected Facter version: 1.7.3 ---------------------------------------- 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.
