Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-11216

Add support for multiple Facter implementations

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 6.25.0, PUP 7.11.0
    • None
    • Hide

      Puppet allows callers to register Facter implementations, and it has a default implementation that calls Facter API and is registered in the runtimes mechanism

      Show
      Puppet allows callers to register Facter implementations, and it has a default implementation that calls Facter API and is registered in the runtimes mechanism
    • Night's Watch
    • 5
    • NW - 2021-09-08, NW - 2021-09-22
    • Enhancement
    • It's now possible to register a facter implementation when initializing puppet via Puppet.initialize_settings
    • Needs Assessment

    Description

      Allow projects to register a facter implementations, similar to how callers (like puppetserver) register an HTTP client implementation. This will isolate the compiler from the system and will allow easier testing. We need to implement the same mechanism that is used for HttpClient. A default Facter implementation should be added, this will be used in Puppet and it will call the Facter API

      Eg.

      facter_impl = FacterImpl.new
      Puppet.initialize_settings([], true, true, http: ..., facter: facter_impl)
      

       

      Attachments

        Issue Links

          Activity

            People

              gheorghe.popescu Gheorghe Popescu
              gheorghe.popescu Gheorghe Popescu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support