See
http://www.cfengine.org/manuals/cf3-reference.html#List-variable-substitution-and-expansion Bryan Ramirez wrote: > Here's a very simple example of something that looks like it should work > and doesn't. My question is should I find a different way of doing > this, or should this work? > > This will just put "server 10.90.34.15" into the file, but not the other > line. > > bundle agent ntp { > > vars: > "ntpservers" slist => { "10.90.34.15", "10.91.34.15" }; > > files: > "/etc/ntp.conf" > edit_line => appendifnosuchline("server $(ntpservers)"); > } > > bundle edit_line appendifnosuchline(line) { > insert_lines: > "$(line)"; > } > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine -- Mark Burgess ------------------------------------------------- Professor of Network and System Administration Oslo University College, Norway Personal Web: http://www.iu.hio.no/~mark Office Telf : +47 22453272 ------------------------------------------------- _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine