help-cfengine
[Top][All Lists]
Advanced

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

Re: Order of Execution


From: Pau Capdevila/Upcnet
Subject: Re: Order of Execution
Date: Wed, 5 Jan 2005 18:00:46 +0100


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 <address@hidden> wrote
To:
"Brian E. Seppanen" <address@hidden>
cc:
address@hidden
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

reply via email to

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