On 24-08-11 11:47, no-re...@cfengine.com wrote:
> body common control
> {
>    bundlesequence =>  { "test" };
> }
>
> bundle agent test
> {
> classes:
>    "runtime_condition" expression =>  fileexists("/tmp/foo");
>
> vars:
>    "foo" string =>  "bar";
>    runtime_condition::
>      "conditional" string =>  "this sometimes happens";
>
> reports:
>
>    cfengine_3::
>      "foo: $(foo)";
>      "conditional: $(conditional)";
> }


I just tested it with 3.2.0 and it works as expected.
{{{
gb-r5n1.irc.sara.nl:/var/tmp/bas
root# cf-agent -f /var/tmp/bas/test.cf -K
R: foo: bar
R: conditional: $(conditional)

touch /tmp/foo

root# cf-agent -f /var/tmp/bas/test.cf -K
R: foo: bar
R: conditional: this sometimes happens
}}}



-- 
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to