When using puppet resource node_group to generate Puppet code for existing node groups, creating node groups on PE 2021 from this code fails due to 2 schema violations:
override_environment is represented as a string ('true' or 'false') instead of a boolean (true or false)
rule is represented as [''] if the node group has no rules and no pinned members
Either issue causes the Puppet run to fail with:
node_manager failed with error type 'schema-violation': The object(s) in your submitted request did not conform to the schema. The problem is: ([:rule "The rule is malformed. Please consult the group documentation for details on the rule grammar."])
Manual modification is currently needed to convert the string values to booleans, and to remove any occurrence of rule => [''].
Desired behavior:
- The output of
puppet resource node_group should print booleans for override_environment
- The output of
puppet resource node_group should omit the rule property entirely if its value would be [''].
When using
puppet resource node_groupto generate Puppet code for existing node groups, creating node groups on PE 2021 from this code fails due to 2 schema violations:override_environmentis represented as a string ('true'or'false') instead of a boolean (trueorfalse)ruleis represented as['']if the node group has no rules and no pinned membersEither issue causes the Puppet run to fail with:
node_manager failed with error type 'schema-violation': The object(s) in your submitted request did not conform to the schema. The problem is: ([:rule "The rule is malformed. Please consult the group documentation for details on the rule grammar."])Manual modification is currently needed to convert the string values to booleans, and to remove any occurrence of
rule => [''].Desired behavior:
puppet resource node_groupshould print booleans foroverride_environmentpuppet resource node_groupshould omit theruleproperty entirely if its value would be[''].