Forum: CFEngine Help
Subject: Re: Template expansion with lists
Author: toddnni
Link to topic: https://cfengine.com/forum/read.php?3,23033,23034#msg-23034
I have used one list in a template using 'join' function.
How about something like
bundle agent ntp_tmp_1 (server, other){
vars:
"tmpfile" string => "/var/tmp/cf_templates/ntp.conf";
"servers_string" string => join("$(const.endl)", "ntp_tmp_1.server");
files:
etc...
}
and corresponding '$(ntp_tmp_1.servers_string)' to the template.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine