On 13 okt 2010, at 20:55, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Best way to exclude host(s) from keeping promisses > Author: hristob > Link to topic: https://cfengine.com/forum/read.php?3,18706,18710#msg-18710 > > Thanks, > > My idea was to use classes and bundlesequence... > > Like this: > > disabled:: > bundlesequence { "update"}; > > !disabled:: > bundlesequence { "update", "otherstuff", ...}; > > Is that feasible? >
we have this bundel for cfengine3, it was posted earlier on the list: bundle agent stop_cfengine { vars: "file" string => "/etc/no_cfengine", comment => "If this file exists abort cfengine run"; classes: "stop_cfengine" expression => fileexists( $(file) ); reports: stop_cfengine:: "CFengine is not allowed to execute: $(file)"; } body agent control { ifelapsed => "1"; abortclasses => { "stop_cfengine" } } Just add stop_cfengine to the bundle sequence after update.. To prevent cf-agent from running Bas van der Vlies b...@sara.nl _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine