Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3037

cf-key --show-hosts in JSON

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open
    • Priority: Lowest
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      It would be nice if cf-key --show-keys could output in JSON format.

      Recently the --no-truncate option was proposed to cf-key as a way to prevent truncation of hostnames output by cf-key --show-keys. That change makes cf-key -s output more friendly for interacting with shell tools like grep.

      Adding support for JSON output would be nice for aligning with cf-promises --syntax-description json, cf-promises --policy-output-format json, cf-agnet --show-evaluated-vars and make integrating with higher level tools easier.

      Note: It's possible to achieve this by writing policy to leverage `hostsseen()` and render a JSON file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel