Add custom PQL queries to the console
Add your own Puppet Query Language (PQL) queries to the console to quickly access them when running jobs.
For help forming queries, go to the PQLReference guide in the Puppet documentation.
- On the primary server, copy the
custom_pql_queries.json.example
file, and remove the.example
suffix. For example, you can use this command:sudo cp /etc/puppetlabs/console-services/custom_pql_queries.json.example /etc/puppetlabs/console-services/custom_pql_queries.json
- Edit the file contents to include your own PQL queries or remove any existing queries.
- Refresh the console UI in your browser.
Results
You can now see your custom queries in the PQL drop-down options when running jobs.
You can now see your custom queries in the PQL drop-down options when running jobs.