I don't think it'll work, even though my servers do check in every 30 
minutes:

   1. From what I understand, the puppet master caches the manifest and 
   doesn't re-interpret it unless it changed.
   2. I have atime disabled on my servers. It saves tons of disk IO and is 
   even the default on our platform (Ubuntu 12.04 LTS).

I have a gut feeling that once Puppet interprets the manifest, it holds a 
tree of objects somewhere were I can scan and look for mention of every 
class in my Puppet source. I just found /var/lib/puppet/state/state.yaml, 
which has an entry for resource, including classes. Perhaps that's the 
direction to go but I was wondering whether there is already a tool to do 
that.

On Sunday, 9 February 2014 18:42:01 UTC+11, Jose Luis Ledesma wrote:
>
> I was thinking about this too. 
>
> If your servers checkin every 30 minutos you can do:
> find /path/to/modules  -amin +30 
>
> I have not tried it yet,but I suppose it works
>
> Regards,
> El 09/02/2014 02:53, "Amos Shapira" <amos.s...@gmail.com <javascript:>> 
> escribió:
>
>> 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
>>
>> -- 
>> 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 <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/3481c943-4b09-4029-ad98-8f2906023340%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>

-- 
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/02bfc2de-899b-4e54-a5e2-216bfb205b1b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to