We make some use of the Global Parameters in Foreman, and I need to list all hosts, which have the Global Parameter foo
set to "bar
".
Can I do that with the REST API or via some other method? Going through the list of API-calls, I do not find anything applicable -- is there hope?
Alternatively, I'm thinking of creating a special Puppet-class, which will do nothing but restate the global parameters as its own variables. By making it an exported resource, I may be able to collect the data from all hosts... Seems nasty, however -- is there a better way?