On 03/21/2012 03:53 AM, Nick Anderson wrote:
I'm just curious. At what point do you decide a module is better than doing 
things natively?
--

I am using a module to initialize classes or variables. Some time cfengine is 
too late with setting the classes/variables.

We have a init_node module that read a file an sets classes/variables for a 
node/host:
{{{
        ## Use realpath instead of variable name else the classes are activated 
to late
        #
        !GOT_INIT::
            "GOT_INIT" expression => 
usemodule("init_node","/etc/node_status/cluster");
}}}



--
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to