You're right, that isn't a working example, I was paraphrasing a quick example to propose an alternative solution.
Substitute AppendIfNoSuchLine instead. Russell On Tue, Apr 18, 2006 at 04:58:34PM -0400, Dmitry Sazonov wrote: > http://cfwiki.org/cfwiki/index.php/Editfiles_Examples > <http://cfwiki.org/cfwiki/index.php/Editfiles_Examples> claims: > > editfiles: > > any:: > > { /etc/hosts > > EmptyEntireFilePlease > > Append "127.0.0.1 localhost" > Append "192.168.1.254 myrouter" > } > > > but that gives en error: > > cfagent -f ./xxx1.conf > cf:cfengine::./xxx1.conf:19: Append used outside of Group - > non-convergent > cf:cfengine::./xxx1.conf:20: Append used outside of Group - > non-convergent > > > > > -- > Dmitry Sazonov > Systems Administrator, AAMC > (202)862-6168 > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > http://cfengine.org/mailman/listinfo/help-cfengine ------------------------------------------------------------------ Russell Adams [EMAIL PROTECTED] PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org http://cfengine.org/mailman/listinfo/help-cfengine