Actions
User story #5665
closedUser story #5673: Add support to parameters in ncf techniques written with ncf builder
Generate technique with parameter from ncf
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Config management
Target version:
Effort required:
Name check:
Fix check:
Regression:
Description
We want to manage techniques from ncf, we have to do it for two things:
- Generate metadata.xml and files for agent (dsc will be in another issue)
- Modify generation to be able to generate correct bundle calls for our Directives
A small example of what we want
Let you have a technique "add_user" with 2 parameters:
bundle agent add_user(user_name, home_path)
This needs to create a technique with a Parameter Secion in metadata.xml with 2 simple inputs:
=> Two Input for variable USER_NAME and HOME_PATH
and a directive implementing this technique with parameters "toto" and "/home/toto".
We want to generate the following bundle call:
"Directive name" => add_user("toto","/home/toto")
Actions