Forum: Cfengine Help Subject: question on bundle sequence vs. ifelapsed Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19154,19154#msg-19154
Hi all, I just experienced a behaviour that seems strange, would be happy about any hint: I have a bunch of bundles that all run fine. Under development I manually started "cf-agent -IK" on the test clients to see it working. Now I wanted to introduce "ifelapsed" to make the system more reasonable, not ALL jobs would have to run each 5minutes or each time cf-agent will run... In bundle 1 and 2 of the bundlesequence I have promises to be verifyed each minute (if_elapsed("1") in "bundle agent update" for copy files action) In bundle 3 the promises need to be verified only each 240 min (package_list_update_ifelapsed => "240" in "body package_method apt") In bundle 4 and 5 promises that should be checked each 5 min (if_elapsed("5") in "bundle agent base_config" for edit_files action) that doesn't work, does it? "cf-agent -vI" stops after bundle 2, telling me nothing had been promised in the next bundle (23/240 minutes elapsed) ... well why doesn't it check out bundle 4 and 5 since THERE ARE promises to evaluate! If I move bundle 3 to the end of the sequence than it seems to work as expected... Is that the inteded behaviour? In other words, do I have to arrange the bundlesequence according to their execution FREQUENCE first and than (secondly) according to their execution sequence? That would make it difficult to understand what inmpact bundles might have that have ifelapsed statements of big differences... Or did I miss somthing? TIA Bernhard Glomm _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine