Forum: Cfengine Help Subject: Re: Should it take two cf-agent runs before a change on policyhost is implemented on client? Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19530,19535#msg-19535
The standard way to avoid this is to set up execd (or cron) to run the command cf-agent -f failsafe.cf && cf-agent which is the default. This gives you the control you need without sacrificing any options. Simple and effective, so it is not a flaw of convergence, just an option. An alternative solution is not to forget that you can tie promises together, by defining a class on update using classes => if_repaired("got_something") and then got_something:: # Promise something else In this case, you are best off with the first option though. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine