Bug #13671
closedMissing node state variable expansion in directive
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)
Updated by Alexis Mousset about 6 years ago
- Related to User story #3112: Allow to get informations from the node inventory to use them in Directives and ncf techniques added
Updated by Alexis Mousset about 6 years ago
- Category set to Web - Config management
Updated by François ARMAND about 6 years 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
Updated by François ARMAND about 6 years ago
- Translation missing: en.field_tag_list 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
Updated by François ARMAND about 6 years ago
- Priority changed from 0 to 113
(save again to update priority)
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ about 6 years 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
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|15f5341449ad45c575e34a3dbec0d262e5163344.
Updated by François ARMAND almost 6 years 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
Updated by Vincent MEMBRÉ almost 6 years ago
- Status changed from Pending release to Released
Updated by François ARMAND almost 6 years ago
- Related to Bug #13915: Missing documentation for "state" and "policymode" parameter expansion added