Project

General

Profile

User story #5665

Updated by Vincent MEMBRÉ almost 7 years ago

We want to manage techniques from ncf, we have allows Techniques built with ncf builder to do it for two things: take parameters. For that, some adaptation about how Rudder handle ncf Techniques need to be done: 

 * Generate metadata.xml and files - don't check for agent (dsc will be in another issue) Technique kind based on the existense of REPORTKEY tag (#5400), 
 * Modify generation to be able to generate correct bundle calls - handle correctly the displaying of the Directive screen for our Directives 

 A small example of what we want such Technique,  
 Let you - in promise generation, take into account the possiblity to have a technique "add_user" Technique with 2 parameters: 

 <pre> 
 bundle agent add_user(user_name, home_path) 
 </pre> 

 This needs to create a technique with a Parameter Secion in metadata.xml with 2 simple inputs: 

 => Two Input both REPORTKEY and normal variable 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: 

 <pre> 
 "Directive name" => add_user("toto","/home/toto") 
 </pre> 


 expected reports.

Back