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");

}








_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to