Following your advice concerning copying instead of extracting a tarbal I have implemented this:
158 bundle agent check_nagios_installation { 159 160 files: 161 "/usr/local/nagios/." 162 comment => "Creating Nagios installation", 163 depth_search => recurse("inf"), 164 action => immediate, 165 copy_from => nagios_copy("/var/cfengine/artifacts/nagios","localhost"); 166 } 167 168 body copy_from nagios_copy(from,server) { 169 170 servers => {"${server}"}; 171 source => "$(from)"; 172 compare => "digest"; 173 verify => "true"; 174 copy_backup => "timestamp"; 175 force_update => "true"; 176 purge => "true"; 177 } After two different approaches this third one now seems to be a reliable solution. Insofar my problem is solved. Thanks to all for helping. However I've encountered so many situations right now with CF3 where the behaviour was not as expected at all. Im working with CF3 for about 6 weeks now and still feel like a first day novice. It's a little frustrating to need so much time and effort for such small problems. I know CF3 is a good and helpfull tool, but it's too hard to work with. Bernd From: nwat...@symcor.com To: bernd.adamow...@external.icw-global.com Cc: Nicolas Charles <charl...@gmail.com>, help-cfengine@cfengine.org, help-cfengine-boun...@cfengine.org Date: 17.12.2009 14:39 Subject: Re: Problem recognizing existence of directory Verbose output might be better than debug output for discovering faults. Also it might be more efficient to have CF copy the files recursively than copying a tar ball and then extracting it. You'll have greater reliability too as CF will log any problems during the copy. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. AVERTISSEMENT RELATIF À LA CONFIDENTIALITÉ Ce message, ainsi que les pièces qui y sont jointes, est destiné à l?usage exclusif de la personne à laquelle il s?adresse et peut contenir de l?information personnelle ou confidentielle. Si le lecteur de ce message n?en est pas le destinataire, nous l?avisons par la présente que toute diffusion, distribution, reproduction ou utilisation de son contenu est strictement interdite. Veuillez avertir sur-le-champ l?expéditeur par retour de courrier électronique et supprimez ce message ainsi que toutes les pièces jointes. InterComponentWare AG: Vorstand: Jörg Stadler / Aufsichtsratsvors.: Prof. Dr. Christof Hettich Firmensitz: 69190 Walldorf, Industriestraße 41 / AG Mannheim HRB 351761 / USt.-IdNr.: DE 198388516
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine