User story #9158
openNormalize ${rudder.parameter} syntaxe between ncf and directive
Description
Today, we have two different syntax to use Rudder global parameter:
- when used in technique or ncf, we must use: ${rudder_parameters.PARAM_NAME},
- when used in directive, we must use: ${rudder.param.PARAM_NAME}.
We must use the same syntax for both case, and provide a migration script that will go trought all instances of used one to change it to the new syntax.
The new syntax should be align with the one provided for node properties, see: #9057
So we could have something like: ${rudder.parameters[PARAM_NAME]. That would also help allowing to add JSON support in these parameters. And if we go that way, we will also add "node" and "default" option (but perhaps restricted somehow, the question being: does we want to tell user that a global param may have a default from a for example node properties (nothing stop it technically)).
And finally, we will most likelly also normalise ${rudder.node.(hostname, id, etc)} and ${rudder.node.policyServer.(hostname, id, etc)} with the same rules, and perhaps behind an other root ${node.info} (and have after a ${node.inventory} etc)
Updated by François ARMAND about 8 years ago
- Related to User story #9057: Allow the use of node properties info in Directive parameters added
Updated by François ARMAND about 8 years ago
- Related to User story #3349: Add global parameters that can be used in Directives added
Updated by François ARMAND about 8 years ago
- Target version changed from 4.0.0~rc2 to 4.1.0~beta1
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 4.1.0~beta1 to 4.1.0~beta2
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 4.1.0~beta2 to 4.1.0~beta3
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 4.1.0~beta3 to 4.1.0~rc1
Updated by François ARMAND almost 8 years ago
- Target version changed from 4.1.0~rc1 to 4.2.0~beta1
Updated by Alexis Mousset over 7 years ago
- Target version changed from 4.2.0~beta1 to 4.2.0~beta2
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 4.2.0~beta2 to 4.2.0~beta3
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 4.2.0~beta3 to 4.2.0~rc1
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 4.2.0~rc1 to 4.2.0~rc2
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 4.2.0~rc2 to 4.2.0
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.0 to 4.2.1
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.1 to 4.2.2
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.2 to 4.2.3
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.3 to 4.2.4
Updated by Benoît PECCATTE almost 7 years ago
- Target version changed from 4.2.4 to Ideas (not version specific)