Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: Controlling Module Calls
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18399,18447#msg-18447


classes: 
"ReIndexOpenLDAP"
 expression => usemodule("ReIndexOpenLDAP", ""),
 classes => DefineSoftClass("ReIndexOpenLDAP_once"), 
ifvarclass => canonify("!ReIndexOpenLDAP_once") ; 


There is no class here to stop this module from being run each time.  You might 
want some thing like this:

classes: 
  !allready_run::
    "ReIndexOpenLDAP"
     expression => usemodule("ReIndexOpenLDAP", ""),
     classes => DefineSoftClass("ReIndexOpenLDAP_once"), 
    ifvarclass => canonify("!ReIndexOpenLDAP_once") ; 


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

Reply via email to