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

Provide parsable (json) output for puppetserver ca commands

    XMLWordPrintable

    Details

    • Template:
    • Acceptance Criteria:
      Hide
      • The puppetserver ca cli enables to user to display information in different formats when using the list command
      • The old behaviour is still the default (and can be explicitly set with using "text" as format).
      • A json-output-format is available.
      Show
      The puppetserver ca cli enables to user to display information in different formats when using the list command The old behaviour is still the default (and can be explicitly set with using "text" as format). A json-output-format is available.
    • Team:
      Froyo
    • Story Points:
      2
    • Sprint:
      Froyo - 6/30/2021, Froyo - 7/14/2021
    • Release Notes:
      New Feature
    • Release Notes Summary:
      The puppetserver-ca CLI tool now can output certificates in a specified format by the user's choice through using the '--format' flag. Current available options are: 'text' (default), 'json'.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Scenario

      We are currently using a puppet bolt script in order to sign CSRs. For now, we are parsing the output of the following command.

      puppetserver ca list --all
      

       

      Motivation

      Parsing plain text is quite error prone and most likely, if something changes in the output printing, it will fail in the future.

       

      Proposal

      It would be good, if the output format of the ca command could be controlled by using a switch such as:

      --format json

      For our use case, json would be completely sufficient.

       

      Notes

      The puppetserver-ca-cli already seems to internally work with json and could probably easily just dump it without converting it beforehand.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tu.vu Tu Vu
              Reporter:
              fetzerms Matthias Fetzer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support