Great!  Thanks for the help!  I figured it had to be something easy like that...

-----Original Message-----
From: help-cfengine-boun...@cfengine.org 
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Sjoerd Oostdijck
Sent: Thursday, May 19, 2011 9:10 AM
To: help-cfengine@cfengine.org
Subject: Re: Automatically deleting files on nodes

On 5/19/11 2:58 PM, Scott Dobner wrote:
> Hi,
> I am trying to manage a webserver using CFEngine, and one of the 
> problems I have run into is that I cannot seem to find a way to delete 
> a file automatically when I remove it from the server.  Is there some 
> kind of attribute of a file promise that checks if a file is present 
> on the server and then deletes it if it is deleted from the server?
>  
Yup, you can define

body copy_from example {
     purge => "true";
}

-- 
Sjoerd Oostdijck                  RIPE Network Coordination Centre
RIPE NCC, IT Department                  Singel 258, Amsterdam, NL
http://www.ripe.net                                +31 20 535 4444

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to