I'm stuck, guys.  I'm trying to set a persistent class,
and then use it.  No go.

::::::::::::::
test.cf - set a persistent class
::::::::::::::
bundle agent example {

classes:

  "myclass"

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


}

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

}


[cfengine00  inputs]# cf-agent -f ./test.cf -b example
[cfengine00  inputs]# cf-agent -f ./test2.cf -b example
[cfengine00  inputs]#
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to