[Pkg-puppet-devel] Bug#500852: Bug#500852: Bug#500852: Tidy must specify size, age, or both

Micah Anderson micah at riseup.net
Tue Oct 28 02:55:53 UTC 2008


* Jayen Ashar <jayen at science.unsw.edu.au> [2008-10-20 17:48-0400]:
> It's not a "bug", so much as "wishlist".  If neither size nor age is 
> specified, tidy should work off of all files, same as "size >= 0".  

So you are saying that if no size is specified or age is specified, tidy
should assume you are talking about zero-byte files of any age? I can
see why you might suggest that these are reasonable defaults, but the
principle of least surprise would suggest that you should be required to
specify exactly what files you want removed before removing them. 

> I'm not sure I understand the purpose of forcing users to specify
> something when they've already specified the file's name.

If you want to remove a file just based on the file's name, then you
should use the file resource, as follows:

file { "/etc/passwd":
     ensure => absent;
}    






More information about the Pkg-puppet-devel mailing list