This was the approach I was going to try next. I just didn't know if what I did should work.
Thanks, Bryan On Thu, 17 Dec 2009 [email protected] wrote: > Date: Thu, 17 Dec 2009 11:04:44 -0500 > From: [email protected] > To: Bryan Ramirez <[email protected]> > Cc: [email protected], [email protected] > Subject: Re: List iteration within parameterized bundles > > You can pass the entire list for greater efficiency. > ... > files: > > redhat|suse|sunos_5_10:: > > "${crontabs}/root" > comment => "Added cron jobs to table.", > edit_line => AppendIfNoLine("@{cron.root_cron_lines}"); > } > > bundle edit_line AppendIfNoLine(line) { > insert_lines: > "${line}" location => "append"; > } > > body location append { > before_after => "after"; > } > > Sincerely, > -- > Neil Watson > 416-673-3465 > _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
