Bug #13671
closed
Missing node state variable expansion in directive
Added by Thomas CAILHE about 6 years ago.
Updated over 2 years ago.
Category:
Web - Config management
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Very Small
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)
- Related to User story #3112: Allow to get informations from the node inventory to use them in Directives and ncf techniques added
- Category set to Web - Config management
- 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
- 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
- Priority changed from 0 to 113
(save again to update priority)
- Target version set to 4.3.7
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
- 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
- Status changed from Pending technical review to Pending release
- 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
- 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
- Related to Bug #13915: Missing documentation for "state" and "policymode" parameter expansion added
- Priority changed from 112 to 100
Also available in: Atom
PDF