Dear Mark, Thanks for your kind reply.
On Sun, Sep 23, 2012 at 12:46 AM, Mark Burgess wrote: >> The body of a promise details and constrains its nature. This promise >> is constrained by the ifvarclass attribute. > > That's true but there are no constraints that determine the class. I still don't get it. Doesn't the context constrain the promise? the ifvarclass will evaluate to true on some systems and false on others. Let me come at it from another angle. Could you please explain why this is valid: {{{ bundle agent example { classes: "solinux" comment => "Set a custom class based on built-in classes", expression => "linux|solaris"; } }}} but the following isn't? {{{ bundle agent example { classes: linux|solaris:: "solinux"; } }}} In both cases I want to create a custom class based on nothing else but an evaluation of the current environment as compared to a class expression. Why is promise body required, please? > I think what you are trying to write is this ... Yes, thank you very much!! Please do answer the above. Yours fondly, Aleksey _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine