Re: [Puppet Users] How to check if module in use.

2018-03-13 Thread Dan White

How about checking out

/opt/puppetlabs/puppet/cache/state/classes.txt

?



Dan White | d_e_wh...@icloud.com

“Sometimes I think the surest sign that intelligent life exists elsewhere in the 
universe is that none of it has tried to contact us.”  (Bill Waterson: Calvin & 
Hobbes)

On Mar 13, 2018, at 04:22 AM, Thomas Müller  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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/8be5c635-13f2-4a06-ba63-f4cdc8c231b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/fcbc82be-9019-41ed-9edb-64c15ef782d0%40me.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] How to check if module in use.

2018-02-25 Thread 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 ?

If the module got a very strange name it's easy, I can do a

find . -type f -name "*pp" -exec grep -l modulename {} \;

and works fine. But what if the name is very short and common ?

Regards
--
Albert SHIH
xmpp: j...@obspm.fr
Heure local/Local time:
Sun Feb 25 14:41:27 CET 2018

-- 
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/20180225134342.GB21721%40io.chezmoi.fr.
For more options, visit https://groups.google.com/d/optout.