Il 29/10/2011 17:09, no-re...@cfengine.com ha scritto: > I'm not certain of the parent's intent but I do wish expand_scalars > supported lists in a looping fashion. For example if I have a list of > ntp 'servers' bound for ntp.conf I have to preform a little trickery > to merge the list into a multi-lined string of > > server 10.0.0.1 > server 10.0.0.2 > server 10.0.0.3
that was exactly (a part of) the problem, Neil. I had a template I used to create an ntp.conf in puppet (sorry for the blasphemy here...). Based on how some variables were set, it included some sections of the template into the file. Besides, in the case of a multicast server or an unicast client, it would iterate over a server list and create lines like server something1 iburst server something2 iburst and so forth. Other things it did in case of a multicast client, it would iterate over the list of trusted keys to generate the trustedkey line. I am looking into the heap of cfengine3 functions to do the same thing you are doing, but I really feel there should be a better way to do it... Anyway, I'll try and read Mark's suggestions and let you know. Thanks to both Ciao -- bronto _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine