Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2054

Re-add the /puppet/v3/facts API endpoint

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • SERVER 5.3.0
    • None
    • None
    • Not Needed
    • Needs Assessment

    Description

      This ticket tracks the server-side work of PUP-7779 "Re-implement `puppet facts upload`".

      In order to recieve facts uploaded from agents, we need to re-add the /puppet/v3/facts API endpoint that was removed in Puppet 4.0 as part of PUP-2560. This consists of the following changes in the ruby code of the Puppet project:

      • Re-add handling for facts to the plurality method of Puppet::Network::HTTP::API::IndirectedRoutes as facts was one of the endpoints with an odd plurality.
      • Re-enable allow_remote_requests? in Puppet::Node::Facts::Yaml. This change allows Puppet Server to cache facts as YAML files on disk for use in further operations, such as catalog compilation. This does not re-enable YAML as a network format and is a behavior already used by the /puppet/v3/catalog endpoint.

      And the following change in the Clojure code of the Puppetserver project:

      • Add a route handler for PUT requests to /puppet/v3/facts to the MasterService.

      Out of scope:

      The implementation removed in PUP-2560 included several backends for saving facts via the Store Configs subsystem along with additional REST api endpoints and handlers for HTTP methods other than PUT. These will not be re-added.

      Attachments

        Issue Links

          Activity

            People

              justin Justin Stoller
              chuck Charlie Sharpsteen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support