Dear Bas,

  Thanks a million!!  I was able to use your workaround.

body common control
{

    inputs => {
        @(global.global_policy),
        "$(global.country_name)/$(global.country_name).cf",
        # "$(global.country_name)/change_management.cf",
        # "$(global.country_name)/quarterly.cf",
        # "$(global.country_name)/hourly.cf",
        # "$(global.country_name)/daily.cf"
   };


 ITALY::
    bundlesequence => { "global_policy", "italy" };

 GERMANY::
    bundlesequence => { "global_policy", "germany" };

}


bundle common global
# common bundles are included in bundlesequence automatically
{

 classes:

   "ITALY"
        expression => classmatch("mil.*");

   "GERMANY"
        expression => classmatch("ber.*");



    vars:
                "country_name" string => "undefined",
                    policy => "overridable";

                "global_policy" slist => { "global_policy.cf" };

        ITALY::
                "country_name" string => "italy",

                    policy => "overridable";

        GERMANY::
                "country_name" string => "germany",
                    policy => "overridable";

}

# other files needed for this example:
# ::::::::::::::
# global_policy.cf
# ::::::::::::::
# bundle agent global_policy {
# reports:
#  linux::
#   "this is global policy";
#}
#::::::::::::::
#italy/italy.cf
#::::::::::::::
#bundle agent italy {
#
#reports:
#  linux::
#    "This promise came out of italy/italy.cf";
#
#}
#
#
#--------------------------------------------
# Here is what cf-agent reports when run on host milan01:
# R: this is global policy
# R: This promise came out of italy/italy.cf
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to