On 6/9/11 12:45 PM, no-re...@cfengine.com wrote:
> I'm looking for advice on how to update configuration to a Nagios monitor 
> server.
> 
> I decided to create a single file for each host/service monitored with Nagios.
> The whole directory (/etc/nagios3 on Debian) is distributed with Cfengine, 
> but I'd like also to remove files on the monitor server for hosts/services no 
> longer being monitored.
> 
Just use purge in the copy_from, this will purge files that are no
longer at the source.

http://www.cfengine.org/manuals/cf3-reference.html#copy_005ffrom-in-files

Perhaps even condider using sync_cp from the CfengineStdLibrary to copy
your files.

http://www.cfengine.org/manuals/CfengineStdLibrary.html#body-copy_005ffrom-sync_005fcp

-- 
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

Reply via email to