Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22499#msg-22499
This is because the promise is too vague. As a best practise, each promise
should traget a specific directory and no wild card. If you are not certain of
the number you could use a loop.
# untested code
vars:
"del_dirs" ilist => { "1","2","3","4"};
files:
"/tmp/test/create_folder${del_dirs}"
comment = "Delete folders ending in del_dirs numbers",
include_basedir => "true",
delete => tidy;
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine