Dear Mark,

  This works beautifully.

community> ***********************************************************
community>  Loading persistent classes
community> ***********************************************************
community>  Persistent class ok_later for 9 more minutes
community>  Adding persistent class ok_later to heap
community> ***********************************************************

Thank you very much for the example!

Aleksey


On Thu, May 19, 2011 at 4:45 PM,  <no-re...@cfengine.com> wrote:
> Forum: Cfengine Help
> Subject: Re: still trying to set a persistent class. help, please?
> Author: mark
> Link to topic: https://cfengine.com/forum/read.php?3,22054,22091#msg-22091
>
> This is not the way to use persistent classes.  See the example below, which 
> will work just fine.
>
>
> body common control
>
> {
> bundlesequence => { "defs", "order" };
> }
>
> ##################################################################
>
> bundle common defs
> {
> classes:
>
>  "preserved_class" expression => "any";
>
> }
>
> ##################################################################
>
> bundle agent order
>
> {
> vars:
>
>  "list" slist => { "three", "four" };
>
> commands:
>
>  ok_later::
>
>   "/bin/echo five";
>
>  otherthing::
>
>   "/bin/echo six";
>
>  any::
>
>
>  "/bin/echo one"     classes => d("ok_later","otherthing");
>  "/bin/echo two";
>  "/bin/echo $(list)";
>
>  preserved_class::
>
>  "/bin/echo seven";
>
> }
>
> ############################################
>
> body classes d(if,else)
>
> {
> promise_repaired => { "$(if)" };
> repair_failed => { "$(else)" };
> persist_time => "10";
> }
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to