Searching nodes with Inventory Search
In large Puppet environments, it may become difficult to find reports for a particular node. Puppet Enterprise provides a handy feature that enables you to find nodes quickly by searching nodes based on their fact values. This feature is called Inventory Search.
We can access Inventory Search from the main navigation menu. When you click on the Inventory Search link, a new form is loaded that contains two text fields and a drop-down menu. The first text field defines the Fact Name, and the second text field defines the Fact Value. In between the text fields, there is a drop-down menu for comparison operator.
To search for a node that has a fact certname
of value web-clone.development.vm
, we can do it with the following query:
- Fact name:
certname
- Comparison operator: is
- Fact value:
web-clone.development.vm
Once you have set the query parameters, click on the Search button to begin the query.
When a node or nodes matching the search pattern is found, the details...