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: Chip Seraphine
Subject: Re: Execution order when files are imported?
Date: Thu, 2 Sep 2004 11:36:45 -0500
User-agent: KMail/1.5.4

Not what you want to hear, but I've generally had to acheive that sort of 
thing by throwing levels of imporation at the problem.  Ugly, but it works.

OoO can be a real headache....

On Thursday 02 September 2004 07:11, Josef Wolf wrote:
> On Thu, Sep 02, 2004 at 11:47:25AM +1000, Jamie Wilkinson wrote:
> 
> > >  foo.cf/files
> > >  foo.cf/links
> > >  foo.cf/directories
> > >  bar.cf/links
> > >  bar.cf/files
> > 
> > cfagent.conf gets executed in its entirety first, then the imports are
> > processed in the order you specify, i.e.:
> > 
> > cfagent.conf read and executed
> > foo.cf read
> > bar.cf read
> > all imports executed
> > 
> > The actionsequence defines the order of execution, so then:
> > 
> > foo.cf/files
> > bar.cf/files
> > foo.cf/links
> > bar.cf/links
> > foo.cf/directories
> > 
> > I do nothing except import in cfagent.conf, so that things behave as I
> > expect them to, and I only define the actionsequence once (in the first 
file
> > imported by cfagent.conf)
> 
> But please note that foo.cf requires files executed before links while
> bar.cf requires links before files.  How do you achieve this?
> 
> -- 
> Please visit and sign and http://www.ffii.org
> -- Josef Wolf -- jw@raven.inka.de --
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
> 

-- 

Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
chip@trdlnk.com




reply via email to

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