help-cfengine
[Top][All Lists]
Advanced

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

Re: Execution order when files are imported?


From: Sven Mueller
Subject: Re: Execution order when files are imported?
Date: Thu, 02 Sep 2004 13:02:40 +0200
User-agent: Thunderbird 0.7.3 (Windows/20040803)

Josef Wolf [u] wrote on 01/09/2004 22:52:

I can't deduce from the ducumentation what the execution order is when
imported modules define their own actionsequece.  For example:

cfagent.conf:

  import:
    foo.cf
    bar.cf


foo.cf:

  control:
    actionsequence = ( files links directories )
  [ ... ]


bar.cf:

  control:
    actionsequence = ( links files )
  [ ... ]


I would exepect the following sequence:

  foo.cf/files
  foo.cf/links
  foo.cf/directories
  bar.cf/links
  bar.cf/files

The reality seems to be that the sequences are intermixed in some way.
Can anyone clarify how properyl define actionsequences in imported files?

imported files are just imported (or in some way "included"), they can't define their own action sequence. Actually AFAIK, the last action sequence defined is probably used: In your case that would be "links files". If you need something to use it's own action sequencew, you need to use methods.

cu,
sven



reply via email to

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