-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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
orfalse
)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 foroverride_environment
- The output of
puppet resource node_group
should omit therule
property entirely if its value would be['']
.
Metadata
Metadata
Assignees
Labels
No labels