Forum: CFEngine Help
Subject: Promise Lock
Author: yrouxel
Link to topic: https://cfengine.com/forum/read.php?3,26240,26240#msg-26240

Hi,

In the cfengine configuration we use, we have separated the bundles by service. 
Each service's bundle knowns on what hosts it must install the service and with 
which configuration. Each bundle is therefore more or less statically 
independant (from a software view). 
They nonetheless depends upon a small number of top bundles which define the 
variables and classes common to all services bundles which are necessary for 
the proper configuration of each service. 

Yet, sometimes, the complete bundle sequence execution takes just a little less 
time than the activation period of the agent through cf-execd. In these case 
the default  value of the ifelapsed lock, which is 1 minute, shortcircuit the 
execution of the top bundles (which are also the first in the bundle sequence). 
As it turns out, the last bundles in the sequence are nevertheless executed, 
which lead to improper configuration and then the loss the related service.

To ensure the execution of the top bundles, I would like to set locally 
'ifelapsed' to zero, only for these bundles, given that they do not modifiy the 
system state and are very quick to execute. 
Is there any problem with that ?
  
Thanks in advance for your answer.

Yann

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

Reply via email to