Skip to content

'puppet resource node_group' generates code that violates PE 2021 schema #63

@kreeuwijk

Description

@kreeuwijk

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 [''].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions