help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional execution of modules


From: Mark Burgess
Subject: Re: Conditional execution of modules
Date: Fri, 2 May 2003 16:09:27 +0200 (MEST)

On  2 May, Chip Seraphine wrote:
> 
> Is there a good way to have a module fire or not fire based on classes? 
>  Currently I am doing this by having the classes define alternative 
> actionsequences, but this is getting very cumbersome.
> 
> (thought:  It would be great if there were a "module:" section that 
> could be called at arbitrary points in the actionsequence, and could 
> then execute modules with syntax similar to "import".)
> 


You can have classes define what goes into the action sequence.
In cfengine 2.1.0 there will be function calls where this will
be more explicit. You can also test the defined classes inside
the modules to see what it should do.

M

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]