On Tue, Nov 2, 2010 at 10:32 AM, <no-re...@cfengine.com> wrote: > Forum: Cfengine Help > Subject: Re: Bundle and Body > Author: periapt > Link to topic: https://cfengine.com/forum/read.php?3,18931,19007#msg-19007 > > I agree with Fransusa that this is not clear. The documentation seems to > emphasise the similarity between bundles and bodies - by describing the > syntax only for the inner part. In the inner part it appears that the body > syntax is a subset of the bundle syntax. Also one might think that a bundle > contains bodies, but this is not clear. I cannot find anywhere in the > documentation that explains the syntax of the "bundle" or "body" > declarations at all.
Have you read the reference guide? http://www.cfengine.org/manuals/cf3-reference.html It explains most of the syntax, and provides many examples. > If I want to write a bundle managing a certain group of files, surely all > the same code is going to go in one bundle, right? Don't make assumptions. Read the manual and learn the syntax, like everyone else who uses cfengine does. > That must be the case. It stands to reason. However it seems I cannot have > the "delete_lines" type in the "agent" bundle. Thats because it belongs in the edit_line bundle. If you read the reference you would know that. > From a top level, cfengine looks great. But after several days of > struggling with the documentation it seems just a jumble and utterly > incoherent. > Cfengine has a steep learning curve. I think everyone has struggled with the syntax in the early stages. Don't try and find some generic rule for what defines bundles and bodies - because there isn't one. You just need to learn which bundles/bodies are relevant in each specific case, and apply them to whatever problem you are trying to solve. > > _______________________________________________ > 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