Details
-
New Feature
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
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