Issue #15596 has been updated by Evan Pierce. Status changed from Accepted to In Topic Branch Pending Review Assignee set to Evan Pierce Branch set to https://github.com/puppetlabs/facter/pull/306
---------------------------------------- Feature #15596: External fact location should be configurable via an environment variable https://projects.puppetlabs.com/issues/15596#change-70549 Author: Andrew Parker Status: In Topic Branch Pending Review Priority: Normal Assignee: Evan Pierce Category: Target version: 2.0.0 Keywords: Branch: https://github.com/puppetlabs/facter/pull/306 Affected Facter version: Right now the external facts are hard coded to two directories (on unix) and one directory (on windows). The user has no control over these unless they pass a command line argument to facter. However, the command line argument can only specify a single directory. This makes it a less than ideal user experience when trying to use facter as a systems tool. Instead of these hard coded paths and a single way of overriding, we should change it so that facter uses an environment variable as a path of directories to look for external facts. export FACTER_PATH=/usr/share/facts:/usr/local/facts facter # will look in /usr/share/facts first and then in /usr/local/facts. Any facts that are found earlier in the path are more important than facts found later in the path. Open questions: * What should be done if `FACTER_PATH` is not set? * If we have `FACTER_PATH`, then do we need any command line options for controlling the path? * If there are command line options, how do they interact with a set `FACTER_PATH` * Can a user effectively remove all external facts if they set `FACTER_PATH=''`? -- 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
