Forum: Cfengine Help Subject: Re: still trying to set a persistent class. help, please? Author: mark Link to topic: https://cfengine.com/forum/read.php?3,22054,22091#msg-22091
This is not the way to use persistent classes. See the example below, which will work just fine. body common control { bundlesequence => { "defs", "order" }; } ################################################################## bundle common defs { classes: "preserved_class" expression => "any"; } ################################################################## bundle agent order { vars: "list" slist => { "three", "four" }; commands: ok_later:: "/bin/echo five"; otherthing:: "/bin/echo six"; any:: "/bin/echo one" classes => d("ok_later","otherthing"); "/bin/echo two"; "/bin/echo $(list)"; preserved_class:: "/bin/echo seven"; } ############################################ body classes d(if,else) { promise_repaired => { "$(if)" }; repair_failed => { "$(else)" }; persist_time => "10"; } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine