Forum: CFEngine Help
Subject: Re: "real" templates
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,23837,23839#msg-23839

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

I do this because a list will not expand. It would be nice if my template could 
have 'server $(ntp_server)' and have the expansion create a full line for each 
list item.

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

Reply via email to