I guess I don't understand what you mean (or visa versa).  What you
describe seems like my "Another idea of having a cfagent.conf style
file for each conf file" idea.  I have ~30 conf files I want to be
able do this to.

Roy

On Tue, 28 Mar 2006, Mark Burgess wrote:

 > Date: Tue, 28 Mar 2006 19:43:45 +0200
 > From: Mark Burgess <[EMAIL PROTECTED]>
 > To: Roy Marantz <[EMAIL PROTECTED]>
 > Cc: help-cfengine@cfengine.org
 > Subject: Re: program structuring
 > X-Spam-Status: No, hits=0.0 tagged_above=-50.0 required=6.3 tests=
 > X-Spam-Level: 
 > 
 > Roy Marantz wrote:
 > > I'd like be able to run my cfengine conf files as part of a big run and
 > > also individually.  i.e. cfagent.conf will import all the files for a big
 > > run and I can use cfagent -f to run a conf file individually.
 > > 
 > > My problem is that I can't think of, nor find, a way to combine my common
 > > stuff while doing the individual run of the conf file.
 > > 
 > > The obvious idea of importing the common stuff can't work because the
 > > imported info isn't visible to the code in the conf file.
 > > 
 > > Another idea of having a cfagent.conf style file for each conf file is too
 > > ugly/messy for me to seriously contemplate.
 > > 
 > > I find that I can
 > >     cat cf.common cf.stuff | cfagent -f -
 > > but that seems wrong too.
 > > 
 > > Anyone have any ideas of how to do this?  Can a cfengine program read the
 > > command line arguments to cfagent?
 > > 
 > > This just seems like a natural way to structure my cfengine code, I find it
 > > hard to believe I can't get it to work correctly.
 > > Thanks.
 > > 
 > > Roy
 > > _______________________________________________
 > > Help-cfengine mailing list
 > > Help-cfengine@cfengine.org
 > > http://cfengine.org/mailman/listinfo/help-cfengine
 > 
 > 
 > The recommended way of working is to not keep anything in the conf file
 > except the import commands themselves. If you do that, the problem goes away.
 > M
 > 
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to