Getting foreman search results into your Puppet manifest

Lets say you want to know all of the hosts your monitoring host need to monitor, or maybe, the hosts to which your database needs to allow access to, traditionally, the solution to this problem was using Puppet storeconfigs.


This is a companion discussion topic for the original entry at https://theforeman.org/2012/01/getting-foreman-search-results-into.html