Project

General

Profile

Actions

Bug #10743

closed

Dynamic group search not available on boolean node property value

Added by Janos Mattyasovszky almost 7 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
Target version:
-
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
30
Name check:
Fix check:
Regression:

Description

If a simple node property is added via the GUI, example: "install_fail2ban" is set to "true", this expression is not searchable via a dynamic group query, that is built as "[Properties] [Name=Value] [=] [install_fail2ban=true]". This is probably because "true" is not a string.

It works if the property's value is a string, like "yes".

However, if it's not a boolean, the node property cannot be used in a mustache template with {{#vars.node.properties.install_fail2ban}}.

Current workaround is to create a dynamic group based on the search "install_fail2ban=yes", and use the group's class definition in the mustache template like {{#classes.group_install_fail2ban_software}}.


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #9299: Extend groups search capabilities for complex JSON Properties / JsonPathReleasedVincent MEMBRÉActions
Is duplicate of Rudder - Bug #10599: Impossible to search or build groups based on JSON values in node propertiesReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF