Forum: CFEngine Help
Subject: Implicit looping in an slist array
Author: th
Link to topic: https://cfengine.com/forum/read.php?3,25939,25939#msg-25939
Hello,
I'm running cfengine-community-3.3.1 and I'm trying to set up promises using
arrays declared like this :
"groups" slist => { "foo", "bar" } ;
"groups" slist => { "aa", "bb } ;
If it were a string array, I could implicitly loop through it using
"$(groups[$(members)])" given members would be defined as "members" slist =>
getindices("groups");
Beeing an array of list, how, if only possible, can I loop through the values
of one entry ?
Note : the idea is to be able to dynamically delete or add one user from a line
of the /etc/group file according to a list of groups he has to belong to.
Thanks
--
TH
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine