Forum: CFEngine Help
Subject: Re: iterating over a global list
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27280,27283#msg-27283

It is best practice to have common bundles in the bundlesequence.  While the 
agent will define variables and classes from a common bundle that is not in the 
bundlesequence, other common promises, such as reports, will not be evaluated 
unless said bundle is in the sequence.

The version mentioned, 3.2.1, is pretty old.  You might consider an upgrade. I 
am not certain that iteration over foriegn lists will work.  Typical practice 
is to make it local then iterate over that.


var:
  'local_list' slist => { "@{g.some_list}" };

reports:
  cfengine:
     "local_list = ${local_list}";


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

Reply via email to