help-cfengine
[Top][All Lists]
Advanced

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

Re: run cfengine with params


From: Mark . Burgess
Subject: Re: run cfengine with params
Date: Tue, 9 Nov 2004 20:21:34 +0100 (MET)


On  9 Nov, Dave Stern wrote:
> We would like cfengine to run in two different formats yet use the same 
> config file. Is this possible?
> 
> Specifically, I'd like an interactive script to use a different value 
> for SplayTime which is defined in control in the config file.
> 
> Ideally, I'd like a command line parameter like:
> cfengine -f ... -DsPlayTime=1
>     for interactive   and
> cfengine -f ... -Dsplaytime=60
>     for cron
> 
> But if this can only be done by defining a class from the command line 
> and having some class stanza that changes splaytime, that would be ok 
> too (just work coding to set). If so, could someone show an example?
> 
> TIA
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine


control:

 run_1::

 SplayTime = ( 1 )

 run_60::

 SplayTime = ( 60 )



The you do

 cfagent -Drun_1
 cfagent -Drun_60

or

  cfrun -- -- run_1
etc

M

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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