-
-
Notifications
You must be signed in to change notification settings - Fork 500
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_log should be string not boolean to support network/network_unsafe options #960
Comments
I think normally it would be somewhat of an anti-pattern to have something that's an optional boolean, and having it a string (with true / false as possible options) would be breaking at best, and kind of wacky UI at worst. Probably the best bet would be something like Are you willing / able to make a PR (including some updates / additions to tests) to handle this? If this feature was added later, it might also be necessary to gate it depending on RMQ version, though I'm not strongly opinionated about this. |
Boolean are tricky because Changing the accepted value from Boolean to String is a backwards-incompatible change, maybe we can accept a Boolean as before, optionally emitting a deprecation warning if a Boolean is passed, so that we can remove it later. I am not a user of this module, IMHO the most important is to have some consistency at the module level: if it use Boolean in other places, it make sense to accept a Boolean value. If it is an exception, it make sense to deprecate this usage. |
@smortex: thanks for weighing in
From an interface standpoint, I agree it's not ideal having both bools and strings work, though it's the best chance at avoiding breaking changes here, and having the strings "true" / "false" be the only way to set true / false doesn't seem ideal anyway. That said, I don't think there's any worry about undef if we used the variant above, since puppet-rabbitmq/templates/rabbitmq.config.erb Line 194 in 8854872
If we were to add an |
Currently the rabbitmq::ldap_log only accepts true or false. According to https://www.rabbitmq.com/ldap.html it should also accept
network
andnetwork_unsafe
This can be achieved by changing the type from boolean to string
The text was updated successfully, but these errors were encountered: