-
Notifications
You must be signed in to change notification settings - Fork 204
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
ldap config fails with type mismatch #50
Comments
Yes, seeing this myself as well.
Also for some reason puppet writes the config to the ldap.toml in random order, and causes another error.
This will happen if the field [[servers]] ends up under any other field like [[servers.group_mappings]]. Very frustrating because you never know what order you will get. But the string/integer error is very annoying since it will get double quoted no matter what you do. |
I think these are two separate issues. The quotes around the 636 port being one but the issue @Ev1l is talking about seems to be an ordering issue. For me when I saw that
Still stuck on the string quote issue though. |
@khdevel My solution to your problem was to template out the TOML file separately. It's a little hacky but it seems to work. |
@slick666 do you have an example of the templating you can share? Seems that will be the only way that this can work or else it might break after each puppet run. |
I'm experiencing the exact issue described here. I took a look at the TOML ruby gem but don't see anything obvious as to why this is happening. Looks like I'll need to go the template-ing route until this is resolved. @adamcstephens - I see that you created the PR in #43. Have you run into this? |
@jaredledvina I agree, it doesn't appear to be the TOML gem that is causing this. As you can see here, the string returned by
However, I don't understand at this point where the quotes are being added. Maybe it's got something to do with how the variable is referenced, or there's some manipulation being done by the |
Finally had time to look at this, and it appears I worked around the issue. Puppet is converting it into a string, not the toml gem. My workaround was to force puppet to cast it as an Integer by adding zero:
Its a hack. Sorry, I should have added this to the README section when I set this up. |
Hi,
When trying to deploy the ldap authentication for grafana I'm experiencing an issue with port variable being treated as string and not an integer.
This is a part of the config file:
And the output ldap.toml file looks like:
It doesn't matter whether I change port to:
port => 636,
In the ldap.toml file I still get this value as string. Also trying not to specify any port results in an error where it uses 0 as port. Anyone seen something like this?
The text was updated successfully, but these errors were encountered: