Uploaded image for project: 'Puppet Enterprise'
  1. Puppet Enterprise
  2. ENTERPRISE-1100

Fact Filter in Console Doesn't Accept Nested Facts

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • Console
    • None
    • Hide

      node fact filter can accept nested facts in console

      Show
      node fact filter can accept nested facts in console
    • Needs Assessment

    Description

      Currently the node fact filter in the console only accepts top level facts.

      I have a user who wishes to filter nodes based on nested facts.

      I have provided them with the below PQL query but they wish to be able to do this from the console.

      puppet query "inventory[facts]{facts.os.release.major = '7'}" | jq 'to_entries[]| [ .value | to_entries[] | { "key": "hostname" , "value":.value.hostname}]| from_entries'
      

      The above query returns node names based on the major release of the OS being version 7, but current functionality only allows them to filter by os. Note, this is only an example of one of the nested facts a user wishes to use.

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            danny.mcilhagga Daniel Mcilhagga
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support