On Fri, Feb 24, 2012 at 8:05 AM, Neil Watson wrote: > > I think that normal ordering is the issue. Vars are defined before classes. > If you want the vars defined first try putting them in another common bundle > located above the common bundle in the example.
Brilliant. Thanks, Neil. That works. Would you be so kind as to update your "dynamic bundlesequence" blog post, too, please? (To help lower barrier to entry to others seeking this functionality in CFEngine 3). Here is the working code: {{ bundle common global_classes { classes: "cf_dbs" expression => "linux"; } bundle common global_vars { vars: any:: "bseq" slist => { "site", "ntp", "hard" }, policy => "free"; cf_dbs:: "bseq" slist => { @{bseq}, "db2", "mysql" }, policy => "free"; cf_webfarm:: "bseq" slist => { @{bseq}, "httpd", "proxy" }, policy => "free"; } body common control { bundlesequence => { "@{global_vars.bseq}" }; } bundle agent site{ reports: cfengine_3:: "site bundle"; } bundle agent ntp{ reports: cfengine_3:: "ntp bundle"; } bundle agent hard{ reports: cfengine_3:: "hard bundle"; } bundle agent db2{ reports: cfengine_3:: "db2 bundle"; } bundle agent mysql{ reports: cfengine_3:: "mysql bundle"; } bundle agent httpd{ reports: cfengine_3:: "httpd bundle"; } bundle agent proxy{ reports: cfengine_3:: "proxy bundle"; } }} Yours fondly, -at _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine