Forum: Cfengine Help Subject: Re: question on bundle sequence vs. ifelapsed Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,19154,19183#msg-19183
Bernhard, to keep indentation and everything else in your promises use "code" button (2nd from the right). It can be guessed from your input that somehow the following construction affects agent-wide "ifelapsed" setting: package_list_update_ifelapsed => "240"; That guess needs to be tested and reconfirmed before filing a bug, though. What I would suggest is to simplify your test case as far as it is possible, and if the bug persists, report it. Otherwise, something must be changed in your policies. >From my point of view, it's terribly strange idea to write multiple promises >about single file. I couldn't predict the final state of the file, and the >idea at whole seems inconvergent to me. But I'm not convergency guru, I can be >wrong about that. So, about code, if you may reproduce it with smth like body common control { bundlesequence => { "apttest", "elapsedtest" }; } bundle agent apttest { packages: "apt" package_method => apt, package_version => "0.0.1", package_select => ">=", comment => "Get a regular update of available packages"; } bundle agent elapsedtest { reports: linux:: "It works" action => ifelapsed("1"); } body package_method apt { .... } body action if_elapsed(x) { ifelapsed => "$(x)"; } then it is bug in Cfengine, for sure. By the way, you didn't show us your body action if_elapsed, didn't you? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine