I'm saying that if no size nor age is specified, tidy should assume I am 
talking about _any_ size files of any age.  I am specifying exactly the files I 
want removed, so I'm not sure why I have to specify "size >= 0", which would 
add no constraints to the files.

If I want to remove a directory, I can't use the file resource, or so the 
documentation says "Specifying absent will delete the file, although currently 
this will not recursively delete directories."

--Jayen

-----Original Message-----
From: Micah Anderson [mailto:[EMAIL PROTECTED]
Sent: Tue 10/28/2008 1:55 PM
To: Jayen Ashar; [EMAIL PROTECTED]
Subject: Re: [Pkg-puppet-devel] Bug#500852:  Bug#500852: Tidy must specifysize, 
age, or both
 
* Jayen Ashar <[EMAIL PROTECTED]> [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;
}    


Reply via email to