-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'puppet resource node_group' generates code that violates PE 2021 schema #63
Comments
I experience similar issue in PE2019, environmental group is not idempotent:
|
Using Node Manager with PE 2021 usually works, but creating a not rule with != or with !~ causes a schema error. For example:
|
My understanding was the RAL always prints Booleans as Strings?
If there's a way to enforce a Boolean, I'd be happy to look at an example. I have marked this property as a Boolean here: |
I almost feel like that may be the problem. No matter whether we put
I would prefer it was treated as a boolean, but apparently whatever is returning the current value is thinking it is a string? |
this was probably fixed by #67, any chance for a new release, @WhatsARanjit ? thanks |
@WhatsARanjit may we have a new forge release pls? 😃 |
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 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_group
should print booleans foroverride_environment
puppet resource node_group
should omit therule
property entirely if its value would be['']
.The text was updated successfully, but these errors were encountered: