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