Forum: CFEngine Help
Subject: what is wrong with this ?
Author: milindk
Link to topic: https://cfengine.com/forum/read.php?3,26350,26350#msg-26350
I want to run a promise on specific dates and spacific time , attached sample
code
body common control
{
bundlesequence => { "test2"};
inputs => { "/var/cfengine/inputs/cfengine_stdlib.cf" };
host_licenses_paid => "100";
}
bundle agent test2 {
vars:
"start_time" string=>"Yr2012.June.(Day27.Hr12||Hr14||Hr16)";
"end_time" string=>"Yr2012.June.(Day28.Hr13||Hr15||Hr17)";
reports:
cfengine_3::
"Hey Got it ",
ifvarclass => "${start_time}||${end_time}";
}
I was expecting it to run on
June 27 @ 12/14/16 Hrs
or June 28 @ 13/15/17 Hrs
but when I tried running it today i get result below
bash-4.1# date
Thu Jun 28 14:04:41 EDT 2012
bash-4.1# cf-agent -K -f ./time.cf
R: Hey Got it
So looks like it is running on June 28 @ 14Hrs which is not what I want
how do I run promise in specific window only
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine