Re: Change Request: /etc/hosts on hosted2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/20/2010 09:07 AM, Seth Vidal wrote:
> 
> 
> On Thu, 20 May 2010, Doug Warner wrote:
> 
>> I'm using this script on my puppetmaster to find hosts that haven't reported
>> in awhile.
>>
> 
> do the files in /var/lib/puppet/reports/$hostname ever get cleaned up? B/c 
> there sure are a lot of them.
> 
> -sv
> 

I also have a cron job that runs a 30 day tmpwatch on them and also compresses
old reports (attached).  The previous script I just run from cron daily.

- -Doug

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFL9Tn4JV36su0A0xIRAkPJAKD+509xGk/qSl/mIXAj/vsDgd4vrACgqO8B
SfA7oqpQTOVN7+teTsDyhoo=
=kpg/
-----END PGP SIGNATURE-----
14 5 * * * root find /var/lib/puppet/reports/ -mindepth 2 -mmin +1440 -type f -name \*.yaml -exec gzip {} \;
31 5 * * * root /usr/sbin/tmpwatch -q -m 30d /var/lib/puppet/reports/

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux