Forum: Cfengine Help
Subject: Re: Cfengine Help: Possibility of forwarding arguments via command 
line to cf-agent
Author: joe77
Link to topic: https://cfengine.com/forum/read.php?3,22234,22236#msg-22236

Hi,
thanks for your answer.

I am, as you may have noticed, a newbie ;) 

Are you talking about the "-D switch at the command line"?

To be specific:
We want to use Cfengine only to create configurations for us.(read from 
csv-file, add some parameters and export to new config-file)
So we will start the cf-agent only "on demand" with:  cf-agent -f scriptname
And i need to tell cfengine to use some external parameter.
Example:
vars:
"no" int => getfields("PARAMETER","$(data)",";","csvdata");

If i define classes via commandline. Is it possible to use them as a variable 
(PARAMETER)?
How can i do that. Any hint appreciated.
Thanks,
Joern

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to