-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PuppetDB backend: Class, Roles and Profiles shortcuts
* It is becoming common practice to use the role/profile paradigm in Puppet, where each host has only one role named Role::Module::Name that includes multiple profiles of the type Profile::Module::Name. If this practice is used, queries for those resources in Cumin will be very common and not user-friendly, requiring to write queries of the type: R:Class = Role::Module::Name. Add support to Roles and Profiles so that they can be queried via shortcuts with 'O:Module::Name' for roles and 'P:Module::Name' for profiles. * Add also a generic class shortcut to quickly query a class resource with C:class_name or C:path::to::class. * The special syntax for fields (@field) and parameters (%param) are also supported. When querying for any of the above shortcuts, like 'P:Module::Name%param = value', the query will include two subqueries in AND between them, one for the class title and the other for the class parameter. Bug: T178279 Change-Id: I74451ee4b59f61bd379d21e99e2d4e9b43264d2c
- Loading branch information
Showing
4 changed files
with
307 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.