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:

> 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 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.

Reply via email to