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 #1

Updated by François ARMAND over 7 years ago

  • Related to User story #9057: Allow the use of node properties info in Directive parameters added
Actions #2

Updated by François ARMAND over 7 years ago

  • Related to User story #3349: Add global parameters that can be used in Directives added
Actions #3

Updated by François ARMAND over 7 years ago

  • Target version changed from 4.0.0~rc2 to 4.1.0~beta1
Actions #4

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.1.0~beta1 to 4.1.0~beta2
Actions #5

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.1.0~beta2 to 4.1.0~beta3
Actions #6

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.1.0~beta3 to 4.1.0~rc1
Actions #7

Updated by François ARMAND about 7 years ago

  • Target version changed from 4.1.0~rc1 to 4.2.0~beta1
Actions #8

Updated by Alexis Mousset almost 7 years ago

  • Target version changed from 4.2.0~beta1 to 4.2.0~beta2
Actions #9

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.2.0~beta2 to 4.2.0~beta3
Actions #10

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.0~beta3 to 4.2.0~rc1
Actions #11

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.0~rc1 to 4.2.0~rc2
Actions #12

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.0~rc2 to 4.2.0
Actions #13

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.0 to 4.2.1
Actions #14

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.1 to 4.2.2
Actions #15

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.2 to 4.2.3
Actions #16

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.3 to 4.2.4
Actions #17

Updated by Benoît PECCATTE about 6 years ago

  • Target version changed from 4.2.4 to Ideas (not version specific)
Actions

Also available in: Atom PDF