help-cfengine
[Top][All Lists]
Advanced

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

reset actionsequence after import.


From: Hans Deragon
Subject: reset actionsequence after import.
Date: Tue, 26 Aug 2003 10:21:16 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Greetings.


I am trying to build a very modular hiearchy of cf.* files using the import: command. However, I have stumbled on a little problem.

I define and actionsequence within each of my imported files. However, the actionsequences add up instead of being reseted per file. For instance, if
file cf.A imports file cf.B and the following is to be found in the files:

File cf.A:

 control:

  actionsequence =
  (
    editfiles
  )

 import:

   cf.B

File cf.B

  control:

  actionsequence =
  (
    copy
    editfiles
    shellcommands
  )

The final action sequence when executing would be { editfiles, copy, editfiles, shellcommands }, thus running the editfiles command prior the copy command when cf.B is run (which is a problem because I need the file to be copied before it is being edited).

Is there a way to instruct cfengine to only execute the actionsequence of cf.B when running the commands found in cf.B? I want cf.B to inherit its configuration from cf.A, but I do not want it to inherit the action sequence.

I am going to have a dozen of cf.* files. I thought that I could all have the executed in one cfagent call. But if their actionsequence command get mangled, then I guess I will have to call cfagent 12 times. Is this what I am supposed to do?


Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc.         Open source:
http://www.deragon.biz            http://swtmvcwrapper.sourceforge.net
mailto://hans@deragon.biz         http://autopoweroff.sourceforge.net





reply via email to

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