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