Be aware that this will create a file resource/checksum for EVERY file in that directory and may cause a heavy load on your system if you have a lot of reports.
Trevor On Tue, Sep 10, 2013 at 10:12 PM, Andrew <[email protected]> wrote: > Using tidy to clean up logs, this is pretty self-explanatory, so I wont > bother explaining :) > > case $hostname { > /^puppet$/: { > tidy { 'puppet::reports': > path => '/var/lib/puppet/reports', > matches => '*', > age => '14d', > backup => false, > recurse => true, > rmdirs => true, > type => 'ctime', > } > # notify { "debug: tidy command should run now": } > } > } > > > Ciao, > Andrew. > > -- > 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 post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 [email protected] -- This account not approved for unencrypted proprietary information -- -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
