Forum: CFEngine Help
Subject: Re: can't find defined bundle
Author: roadtest
Link to topic: https://cfengine.com/forum/read.php?3,24359,24361#msg-24361

Diego, thanks for your reply. I should use the default locale:-). If I don't 
use transformer, may i have the file_list in the report output?  In following 
output, sys.date is substituted but file_result is not.

root@jumpstart2:/var/cfengine/inputs# cf-agent  -f ./1.cf.revised -K
R: 
Time: Sat Dec 17 23:43:01 2011
Please arrange to remove following core files - $(file_result).



$more 1.cf.revised

body common control
{
bundlesequence => { "invalidfiles" };
inputs => { "cfengine_stdlib.cf" };
}
bundle agent invalidfiles
{
vars:
"dir_list" slist => {"/etc","/var/spool/mail","/var/core","/var/tmp","/tmp"};

classes:

"ok" expression => "any";

files:

"$(dir_list)"
        file_select => by_core;

reports:
ok::
"
Time: $(sys.date)
Please arrange to remove following core files - $(file_result).
";
}

body file_select by_core
{
#leaf_name => {"/*.core","$(dir_list)/core.*" };
leaf_name  => {"*.core" };
file_result => "leaf_name";

}

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to