On 2/8/14 8:53 PM, Amos Shapira wrote:
> Hello,
> 
> Is there a way to systematically find all modules we have which aren't used?
> 
> Two reasons for this question:
> 
>  1. We use librarian-puppet to manage "external" modules and would like
>     to find which of them can we remove.
>  2. We did some major refactoring over the years, in particular we moved
>     from a mix of old distribution to a single Ubuntu LTS version, and
>     there could be some of our own classes which aren't used.
>  3. If it's an automatic way, it will be great to run it as part of our
>     Continuous Integration suite to find code which can be removed.
> 
> So - is there such a thing?
> 
> Cheers,
> 
> --Amos


Hi Amos,

With PuppetDB you can query[1] for the most recent catalog of a given
node which will list all of the classes used. You could the use the
process of elimination to see what classes you had in your modulepath
that are not showing up in your catalogs.

[1] - http://docs.puppetlabs.com/puppetdb/1.6/api/query/v3/catalogs.html

BR,
-g

--
Garrett Honeycutt
learnpuppet.com

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52F7B043.7030308%40garretthoneycutt.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to