update - Getting Foreman search results into your Puppet manifest

How to use the Foreman search language inside Puppet manifests and get information about other nodes. This page is an update of the previous post written by Ohad Levy

This is a companion discussion topic for the original entry at https://theforeman.org/2018/06/getting-foreman-search-results-into-your-puppet-manifest.html