Hi,

I encounter the following problem, extracted from a more complex config:

bundle agent test  {

classes:

  "test_class" expression => fileexists("/etc/passwd");

#  "test_class" and  => { fileexists("/etc/passwd")  };

#  "test_class" expression   => "sunos_5_10";


vars:

  test_class::

    "test_var" string => "test_var_value";



reports:

  test_class::

    "DEBUG: test_var has value $(test_var)";

}

The output to this simple example ( run by root ) :

# /var/cfengine/bin/cf-agent -I -K   -f ./test.cf
R: DEBUG: test_var has value $(test_var)

I got the same output when using test_class" expression => isdir("/etc");


When defining  the test_class  by  using built-in classes for instantce,
things seem to work ok:

# /var/cfengine/bin/cf-agent -I -K   -f ./test.cf
R: DEBUG: test_var has value test_var_value

Is it  something that I miss or things are not working the way the
documentation says?

Test run on cfengine-3.1.4, debian_5 linux and sparc solaris 10 .

Regards,
mlz.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to