Forum: Cfengine Help
Subject: Re: bundlesequence and module protocol
Author: elwood
Link to topic: https://cfengine.com/forum/read.php?3,21208,21216#msg-21216
Thank you, I apparently need to step away from the keyboard for an hour. Turns
out I have "investigate usemodule" on a list right in front of me, and I had
already put my module in $WORKDIR/modules.
Anyway, usemodule works "as advertised", and in combination with execresult I
get to define things when I need them, however I need to.
Oh, I just noticed usemodule runs during each pass, makes sense, but I should
make sure I don't do anything resource-intensive. I guess I could always:
classes:
!module_run::
"module_run" expression => usemodule("heavyweightmodule","");
If I really need to.
Thanks again!
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine