help-cfengine
[Top][All Lists]
Advanced

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

Re: Order of Execution


From: Mark . Burgess
Subject: Re: Order of Execution
Date: Wed, 5 Jan 2005 18:38:28 +0100 (MET)

This is what "methods" are for.

M


On  5 Jan, Pau Capdevila/Upcnet wrote:
> In a modularized set of scripts (main and imports).
> Is it possible to redefine the action sequence in an imported script?
> 
> It is misleading that many things of the main script apply but not the 
> order defined in a inner control section.
> 
> If not it would be a nice feature to see implemented if possible.
> 
> Pau
> 
> on Wed, 05 Jan 2005 08:34:18 -050 Christian Pearce 
> <pearcec@perfectorder.com> wrote
> To:
> "Brian E. Seppanen" <seppy@chartermi.net>
> cc:
> help-cfengine@gnu.org
> Subject:
> Re: Order of Execution
> Maybe this will work.  This isn't code complete.
> 
> cfagent.conf 
> 
>     control:
> 
>                  actionsequence = ( copy shellcommands 
> shellcommands.secondrun )
> 
>     import:
>                  cf.solaris
>                  cf.dns
> 
> cf.solaris
> 
>     copy:
>         [Code to copy file to /tmp/a]
> 
> 
>     shellcomands:
> 
>                  secondrun::
>                                  echo "How are you today?" >> /tmp/a
> 
> cf.dns
> 
>     shellcommmands:
> 
>         any::
>              echo "Hello World" > /tmp/a



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]