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

Default to JSON when sending facts and reports

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      Facts and reports are submitted as JSON by default, as visible using --http_debug. If preferred_serialization_format=pson, then submit using PSON.

      Show
      Facts and reports are submitted as JSON by default, as visible using --http_debug . If preferred_serialization_format=pson , then submit using PSON.
    • Team:
      Agent
    • Story Points:
      2
    • Sprint:
      Agent 2017-06-14
    • QA Risk Assessment:
      Manual

      Description

      In PUP-7259, we modified the agent to requests catalogs and file_metadata from the server in one of the agent's supported formats, i.e. Accept: application/json, pson, etc. The server will select the first format from the list that it also supports.

      However, puppet still sends facts and reports in PSON.

      PUP-7259 enabled the server to start accepting reports in JSON and has already been resolved.

      PUP-7257 will enable the server to start accepting facts in JSON. Once that lands -and is promoted into puppetserver-, we can modify the agent to start sending facts and reports as JSON (this ticket).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support