Hi, Seva.  Did you try this?  I tried what you suggested and cf-agent tried to
read the file called @(g.countryside).

Can you get it to work?

Here is what I have now:

# import italy.cf and run the italy bundlesequence
# only if the hostname matches the pattern mil.*


bundle common define_global_classes {

 vars:
 italy::
  "country" slist => { "italy.cf" };
 germany::
  "country" slist => { "germany.cf" };


classes: "italy"   expression => classmatch("mil.*");

classes: "germany" expression => classmatch("berl.*");

}


body common control {

  bundlesequence => { "main" };
# common bundle are evaluated automatically, there's no need to
include them into the bundlesequence.

 inputs => {  @(g.country) };

}



bundle agent main {


vars:
   "country"
        slist => { "italy", "germany" };


methods:
     "any"
        usebundle => "$(country)",
        ifvarclass => "$(country)";
}
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to