[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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Parrot, cfengine, and embedded languages, (continued)
- Parrot, cfengine, and embedded languages, David Douthitt, 2005/01/11
- Re: Parrot, cfengine, and embedded languages, Mark . Burgess, 2005/01/11
- Re: Parrot, cfengine, and embedded languages, Pe5kyTac0, 2005/01/11
- Re: Parrot, cfengine, and embedded languages, Christian Pearce, 2005/01/11
- Re: Parrot, cfengine, and embedded languages, Tim Nelson, 2005/01/11
- Re: Parrot, cfengine, and embedded languages, Christian Pearce, 2005/01/12
- Re: Parrot, cfengine, and embedded languages, Tim Nelson, 2005/01/12
- Re: Parrot, cfengine, and embedded languages, Christian Pearce, 2005/01/13
- Re: Parrot, cfengine, and embedded languages, Tim Nelson, 2005/01/13
- Re: Parrot, cfengine, and embedded languages, Tim Nelson, 2005/01/11
Re: Order of Execution,
Mark . Burgess <=