I'm looking of a way to create an array of IPs of puppet clients which are currently assigned a certain class\module.
Would anyone be able to tell me if this would be possible and if so, point me in the right direction of implementing it? I'm using puppetdb so assume the details could be pulled from there somehow? Or perhaps directly from the latest catalog?
Thank you in advanced.