I can't recall if this is now possible with 3.3.0. Can we define a list
in an array and then loop the list after passing it? E.g.
body common control {
bundlesequence => {
"main",
};
inputs => {
"cfengine_stdlib.cf",
};
}
bundle agent main {
vars:
"l[x]" slist => { "one", "two", "three" };
methods:
"any" usebundle => test( "main.l[x]" );
}
bundle agent test (list){
reports:
cfengine::
"l => ${list}";
}
[root@admin1 masterfiles]# cf-agent -IKf ./arlist.cf
R: l => main.l[x]
I was hoping to see list expansion in the report promise. Is this
possible?
--
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine