Project

General

Profile

Feature #4965

Aliases for search queries.

Added by Martin Hovmöller almost 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

It would be great if it was possible to create aliases for search keywords in foreman.
Two uses cases come to mind:

1. Having aliases mapping the names facter and chef use to the same things on foremans side (for example operatingsystem would map to os and operatingsystemmajrelease would map to os_major).
These should come with foreman out of the box for at least chef and puppet. Perhaps this should be an option so you can specify that you want to use the aliases for only chef, since it's probably rarely usable to get both sets.

2. Creating custom aliases.
For instance, the search query for machines reporting errors is "last_report > "65 minutes ago" and (status.failed > 0 or status.failed_restarts > 0) and status.enabled = true". This is a bit long, but when you start adding more criterias to it it quickly becomes very hard to read.
It would be great if it was possible to alias something like "errors = 1" to "last_report > "65 minutes ago" and (status.failed > 0 or status.failed_restarts > 0) and status.enabled = true".

History

#1 Updated by Dominic Cleal almost 9 years ago

  • Category set to Search

Also available in: Atom PDF