Project

General

Profile

Actions

Enhancement #18028

open

Group classes list should be distributed via a simple json

Added by Félix DALLIDET almost 4 years ago. Updated 7 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Server components
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:

Description

Currently, it seems like the group classes are passed via escaped cfengine code which defines classes.
It would be way easier to use this for non cfengine agents if it was passed as a single json list of strings.
Ex:

"RUDDER_NODE_GROUPS_CLASSES":"\"group_special_all_exceptpolicyservers\"            expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_all_managed_nodes\"                          expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_special_all_nodes_without_role\"             expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_all_nodes_excluding_rudder_server_roles\"    expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_all_nodes_with_dsc_agent\"                   expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_all_nodes_with_a_rudder_windows_dsc_agent\"  expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_special_all\"                                expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_all_nodes\"                                  expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_4a105ddc_ee2a_4681_926e_7fc0e9c57f16\"       expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };\n\"group_windows_nodes\"                              expression => \"any\",\n                                                         meta => { \"inventory\", \"attribute_name=rudder_groups\" };",
  "RUDDER_NODE_GROUPS_VARS":"\"by_uuid[special:all_exceptPolicyServers]\"            string => \"All managed nodes\",\n  

Actions

Also available in: Atom PDF