I haven’t used it in a couple of years, but puppet-ghostbuster was designed to poll puppetdb as you describe, compare it to the module list, and give you a report of unused modules and classes. https://github.com/camptocamp/puppet-ghostbuster?files=1
On Tue, Mar 13, 2018 at 4:22 AM Thomas Müller <[email protected]> wrote: > > > Am Sonntag, 25. Februar 2018 14:44:07 UTC+1 schrieb Albert Shih: >> >> Hi >> >> During time I've got lot of modules. Some are not use anymore. But how >> can >> I check if a module is use by other ? >> >> there is IMHO no easy way to do this. > > I've created a (ugly) scripts to query puppetdb to list all used resources > of a environment. then another script to create a list of resources out of > a file-list. then I can figure out if there are resources/classes/defined > types that are not in use anymore. it won't directly give you the unused > modules some indications what is not used anywhere on clients. > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/8be5c635-13f2-4a06-ba63-f4cdc8c231b2%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/8be5c635-13f2-4a06-ba63-f4cdc8c231b2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Nelson -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC76iT9D4PfXqArVpynPGEgCSFi59%2B%3Dq%3DWn1c2J5nYs68NBT%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
