Forum: Cfengine Help (Mailing list)
Subject: Re: Order of evaluation issues in body common control
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,16592,16600#msg-16600

Another way to do this is to keep the bundlesequence simple and create 
something like a "main" function in C.

bundlesequence => { "main" }; ....

Then

bundle agent main
{
methods:

    any::

      "default" usebundle => generic_bundle;

    class1::

       "role1" usebundle => mybundle1;
       
    class2::

       ...
}

Etc. Since Cfengine retains the order by default, unless you override it with 
other constraints, this lets you be freer with yours lists.

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

Reply via email to