This does not work either, I do not get a report.   What I tried was
I moved the class definition into a common bundle, to make the
persistent class be global.

::::::::::::::
test.cf
::::::::::::::
bundle common set_persistent_class {

classes:

  "myclass"

     expression => classmatch (".*cfeng.*"),
     classes => set_to_persist;


}

body classes set_to_persist
{
persist_time => "100";
timer_policy => "reset";
}
::::::::::::::
test2.cf
::::::::::::::
bundle agent example
{
reports:
  myclass::
    "persistent class found";

}

[cfengine00  inputs]#
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to