Project

General

Profile

Actions

Bug #13671

closed

Missing node state variable expansion in directive

Added by Thomas CAILHE about 6 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Very Small
Priority:
100
Name check:
Fix check:
Regression:

Description

Oyabi
@Thomas CAILHE
15:46

I try to play with variable so I set a custom tiny custom motd:

${rudder.param.rudder_file_edit_header}
Bienvenue sur ${rudder.node.hostname}
Policy mode: ${rudder.node.policyMode}
${rudder.param.rudder_file_edit_header}

But my policies does not update => Unknow interpolated variable ${node.policyMode}.
However, policyMode is in the API (GET nodes/nodeID) and set to "policyMode": "enforce",.
Francois Armand
@fanf
15:52
@Thomas CAILHE unfortunatly, you don't have access to all inventory variables in rules, see: https://www.rudder-project.org/redmine/issues/3112
Rudder Chatbot
@rudderbot
15:53
Helmsman User story #3112: Allow to get informations from the node inventory to use them in Directives ( New issue assigned to no one. URL: https://www.rudder-project.org/redmine//issues/3112 )
Francois Armand
@fanf
15:53
(yes, that old)
(we are really commited to find a solution for that one. It's hard with the constraint to not have abysmal performances)
Oyabi
@Thomas CAILHE
15:55
:) ok that fine. Thanks
Francois Armand
@fanf
15:58
hum
@Thomas CAILHE in fact for node state and policy mode, it should works because that's no inventory info, but node info
so would you mind opening a bug for that? (marking it "related to #3112" would be extremelly kind)


Subtasks 1 (0 open1 closed)

Bug #13841: Missing node policy mode in variable expansion in directiveReleasedFrançois ARMANDActions

Related issues 2 (0 open2 closed)

Related to Rudder - User story #3112: Allow to get informations from the node inventory to use them in Directives and ncf techniquesReleasedFrançois ARMANDActions
Related to Rudder - Bug #13915: Missing documentation for "state" and "policymode" parameter expansionReleasedAlexis MoussetActions
Actions

Also available in: Atom PDF