Listing all hosts with a particular Puppet Class assigned?

Hi all,

For reporting purposes, I was wondering how I can go about listing all hosts that have a particular Puppet Class assigned to them. At the moment, I’m doing this by viewing each host in turn via the Web UI - I’m sure there’s a better way to go about this.

With Thanks in Advance,


You can use the search on hosts page:

or using hammer:

hammer host list --search "class = my_class_name"

Hope this helps,

Awesome! Thank you very much @Ondrej_Prazak. Cheers