report all nodes that do NOT have a certain class assigned to them

19 views
Skip to first unread message

Jay Benner

unread,
Jun 24, 2014, 2:01:13 PM6/24/14
to puppet...@googlegroups.com
Seems like this should be easy, but I am having a tough time sorting it out. 
I am using PE 3.1 and I want to know which of my nodes are missing a certain class.  Its pretty easy to get a list of the nodes that have the class in the console, but that still leaves a lot of math for me to do as I have thousands of nodes.  The search inventory tool has something close with being able to search via fact presence or absence, but there doesn't seem to be a fact that corresponds to my class.  Even if I distributed a fact with my class, that would only report for nodes that actually got the class, whereas I want hits on the fact's absence.  Anyone solved this riddle already?

Pete Brown

unread,
Jul 4, 2014, 1:41:01 AM7/4/14
to puppet-users
Hi Jay,

Have you had a look at puppetdbquery?

https://forge.puppetlabs.com/dalen/puppetdbquery
> --
> 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/e5187012-2753-42a1-9a56-6f0d4bacb252%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages