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 <y...@comcast.net> 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:
>
> 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 puppet-users+unsubscr...@googlegroups.com.
>
> To post to this group, send email to puppet-users@googlegroups.com.
> 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
> puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> 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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
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