That makes sense. Thanks.
“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) ----- Original Message ----- From: "Andrew G" <[email protected]> To: [email protected] Sent: Thursday, September 12, 2013 1:28:26 AM Subject: Re: [Puppet Users] Purge puppet's reports hi dan, it applies only to any server with a shortform dnsname == puppet. the facter variable $hostname matches the puppet master server name. alternatively, remove the case statement, put it in it's own class and apply that class specifically to your puppetmaster server. Andrew On Thu, Sep 12, 2013 at 7:22 AM, Dan White < [email protected] > wrote: OK, but the reports live on the puppetmaster. How do you get a list of hostnames to apply to this resource definition ? On Sep 10, 2013, at 10:12 PM, Andrew wrote: <blockquote> 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 . -- You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/q8vWDr3bn4Q/unsubscribe . To unsubscribe from this group and all its topics, 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 . </blockquote> -- 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 . -- 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.
