How to dynamically query PuppetDB for a list of certnames with a fact.

asked 2016-04-12 16:04:00 -0600

AmberW gravatar image

Hi folks,

I want to get a list of certnames that have a certain title. I can get a list with this query: ["=", "title", "Roles::Example_role"] on resources but it has a lot of extra data. I can parse it, but is there a way to get only the certnames?

Thanks!

edit retag flag offensive close merge delete

Comments

"mco find" will give you all the known hosts info and you can grep the words on top of it.

hKothuri gravatar imagehKothuri ( 2016-04-18 05:16:06 -0600 )edit