On 2014-09-02 2:53, Amos Shapira wrote:
Hello,

Is there a way to systematically find all modules we have which aren't used?

Basically, the answer is "no" because it is not possible to statically analyze puppet code since all inputs are unknown. (This because references to types can be dynamic - i.e. based on combination of values that are only present when evaluation takes place).

At best, it is possible to find candidates that *may* be removed, but only with knowledge that there are no dynamic references, and/or after testing.

Having a tool that finds modules that a given module depends on but without anything actually being used is a great tool to have - suggest filing an enhancement request for Geppetto for this. (It will still not be able to tell you if there are dynamic references - only testing
can answer that).

Regards
- henrik


--
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/ld8aqp%24h04%241%40ger.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to