Project

General

Profile

Actions

User story #9158

open

Normalize ${rudder.parameter} syntaxe between ncf and directive

Added by François ARMAND over 7 years ago. Updated about 6 years ago.

Status:
New
Priority:
2
Assignee:
-
Category:
Web - Config management
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

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)


Related issues 2 (0 open2 closed)

Related to Rudder - User story #9057: Allow the use of node properties info in Directive parametersReleasedNicolas CHARLES2016-09-26Actions
Related to Rudder - User story #3349: Add global parameters that can be used in DirectivesReleasedFrançois ARMAND2013-03-13Actions
Actions

Also available in: Atom PDF