Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-696

facts.d module "external" facts get put in client dir which facter doesn't look at by default

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: FACT 2.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Facter 2.2.0
      Puppet 3.6.2
      CentOS 6.5

    • Template:

      Description

      Fact scripts placed in the recommended path of <MODULEPATH>/<MODULE>/facts.d/ get added to clients into the /var/lib/puppet/facts.d directory, but then this directory is only searched for .rb ruby fact snippets by default.

      If facter is run explicitly as:

      facter --external-dir /var/lib/puppet/facts.d/ <factname>

      ..then this works fine, as does lookup of the facts in puppet manifests.

      However, this seems non-sensical and that the facter default should be to look in the directory which fact scripts are placed into automatically; especially as this is the recommended method of adding external script facts via module magic sync rather than placing them into /etc/facter/facts.d explicitly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                legooolas David Gardner
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support