list all resources of given type

54 views
Skip to first unread message

Matt Zagrabelny

unread,
May 19, 2014, 10:36:55 AM5/19/14
to puppet...@googlegroups.com
Greetings,

I've done some grepping of the puppet-users list and cannot find a
definitive answer. I am running a puppet 2.6/2.7 environment. Is there
a way to query the master to get a list of agents/clients that have
(in their computed catalog) a certain resource (cron for instance) ?

It looks like this can be achieved with PuppetDB, but that is a long
way off for our installation.

Thanks for any hints!

-mz

Martin Alfke

unread,
May 19, 2014, 10:52:58 AM5/19/14
to puppet...@googlegroups.com
Hi,
On 19 May 2014, at 16:36, Matt Zagrabelny <mzag...@d.umn.edu> wrote:

> Greetings,
>
> I've done some grepping of the puppet-users list and cannot find a
> definitive answer. I am running a puppet 2.6/2.7 environment. Is there
> a way to query the master to get a list of agents/clients that have
> (in their computed catalog) a certain resource (cron for instance) ?

Each puppet agent writes a file:
<vardir>/state/resources.txt
vardir normally points to /var/lib/puppet

This file lists all managed resources on the agent.
But this requires access to all puppet agents.

hth,

Martin

>
> It looks like this can be achieved with PuppetDB, but that is a long
> way off for our installation.
>
> Thanks for any hints!
>
> -mz
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAOLfK3VDY3HiQm6cc51ewRZz3yVA%2BT-yJV1R%2B1JqpSCGo-%2BHCA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages