User story #5665
closedUser story #5673: Add support to parameters in ncf techniques written with ncf builder
Generate technique with parameter from ncf
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")
Updated by François ARMAND about 10 years ago
- Project changed from 41 to Rudder
- Category set to Web - Config management
- Target version set to 140
Updated by Matthieu CERDA about 10 years ago
- Target version changed from 140 to 3.0.0~beta1
Updated by Jonathan CLARKE about 10 years ago
- Target version changed from 3.0.0~beta1 to 3.1.0~beta1
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0~beta1 to 3.1.0~rc1
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0~rc1 to 3.1.0
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0 to 3.1.1
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.1 to 3.1.2
Updated by Jonathan CLARKE over 9 years ago
- Target version changed from 3.1.2 to Ideas (not version specific)
Updated by Vincent MEMBRÉ about 7 years ago
- Related to deleted (User story #5673: Add support to parameters in ncf techniques written with ncf builder)
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from Ideas (not version specific) to 4.3.0~beta1
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/1820
Updated by Vincent MEMBRÉ almost 7 years ago
- Subject changed from Adapt Rudder to allows to have ncf technique with parameter to Generate technique with parameter from ncf
- Description updated (diff)
Updated by François ARMAND almost 7 years ago
This seems good until we don't have more complexe parameters for ncf technique (i.e: arrays, multi-valued section, etc).
Here, we have the limitation that the parameters are written directly in the bundle sequence, and so we can't pass more complexe things than strings.
What we want to do in the next iteration is to have all directives generated from technique from technique editor to put there parameters in a "parameters.json" file, with roughtly that format:
{ "directiveid (or reportid?) 1": { "paramName1": "simple param" , "paramName2": { "structured"} etc , "directiveid (or reportid?) 2": { "paramName1": "simple param" , "paramName2": { "structured"} etc }
And then only give the directiveid (or reportid) as parameter of the bundle in the bundle sequence.
Updated by Rudder Quality Assistant almost 7 years ago
- Assignee changed from François ARMAND to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ almost 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|7fc572eeea028e3ce6f2aa2817f5ca1159ec249d.
Updated by Vincent MEMBRÉ almost 7 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.0~beta1 which was released today.
- 4.3.0~beta1: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/