Project

General

Profile

Bug #13671

Missing node state variable expansion in directive

Added by Thomas CAILHE about 2 months ago. Updated 12 days ago.

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

Description

Oyabi
@Oyabi
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
@Oyabi 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
@Oyabi
15:55
:) ok that fine. Thanks
Francois Armand
@fanf
15:58
hum
@Oyabi 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

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

Related issues

Related to Rudder - User story #3112: Allow to get informations from the node inventory to use them in DirectivesNew
Related to Rudder - Bug #13915: Missing documentation for "state" and "policymode" parameter expansionNew

Associated revisions

Revision 15f53414 (diff)
Added by Vincent MEMBRÉ 27 days ago

Fixes #13671: Missing node policy mode and node state variable expansion in directive

History

#1 Updated by Alexis MOUSSET about 2 months ago

  • Related to User story #3112: Allow to get informations from the node inventory to use them in Directives added

#2 Updated by Alexis MOUSSET about 1 month ago

  • Category set to Web - Config management

#3 Updated by François ARMAND about 1 month ago

  • Subject changed from Get information from variable in directives to Missing node policy mode and node state variable expansion in directive
  • Effort required set to Very Small

#4 Updated by François ARMAND about 1 month ago

  • Tags set to Sponsored, community
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins

#5 Updated by François ARMAND about 1 month ago

  • Priority changed from 0 to 113

(save again to update priority)

#6 Updated by Vincent MEMBRÉ 27 days ago

  • Target version set to 4.3.7

#7 Updated by Vincent MEMBRÉ 27 days ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ

#8 Updated by Vincent MEMBRÉ 27 days 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/2059

#9 Updated by Vincent MEMBRÉ 27 days ago

  • Status changed from Pending technical review to Pending release

#10 Updated by François ARMAND 16 days ago

  • Subject changed from Missing node policy mode and node state variable expansion in directive to Missing node state variable expansion in directive
  • Priority changed from 113 to 112

#11 Updated by Vincent MEMBRÉ 12 days ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.7 and 5.0.3 which were released today.
Changelog
Changelog

#12 Updated by François ARMAND 11 days ago

  • Related to Bug #13915: Missing documentation for "state" and "policymode" parameter expansion added

Also available in: Atom PDF