Best practice note

Mark Burgess <[email protected]> Mon, 12 Jan 2009 20:53:39 +0100
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
Just a tip. The "best practice" now when you have multiple items with
repeated promises. So this

> bundle agent copy
> {
> files:
>     "/tmp/testfile1" copy_from => mycopy("/tmp/testfile1", "gudea");
>     "/tmp/testfile2" copy_from => mycopy("/tmp/testfile2", "gudea");
> }

could be turned into this:

bundle agent copy
{
vars:

   "files" slist => { "testfile1", "testfile2" };

files:

   "/tmp/$(files)" copy_from => mycopy("/tmp/$(files)", "gudea");

}