rabbitmq / chef-cookbook

Development repository for Chef cookbook RabbitMQ
https://supermarket.chef.io/cookbooks/rabbitmq
Apache License 2.0
212 stars 425 forks source link

Is rabbit_auth_backend_cache supported to avoid too many connections to ldap in chef-cookbook syntax? #580

Closed kmishra-BRONZA closed 2 years ago

kmishra-BRONZA commented 2 years ago

We have a requirement to cache ldap connections in rabbitmq server. We have tried many ways to place below code snippet in chef json format but cache related config is not getting enabled in node when we run chef-client.

First we have enabled rabbitmq_auth_backend_cache plugin in enabled_plugins file

{ "name": "rabbitmq-ldap-role", "description": "some description", "json_class": "Chef::Role", "default_attributes": {}, "override_attributes": { "rabbitmq": { "auth_backends": "rabbit_auth_backend_cache,rabbit_auth_backend_ldap,rabbit_auth_backend_internal", "ldap": { //few ldap configurations }, "auth": { "cache": { "enabled": true, "conf": { "cached_backend": "rabbit_auth_backend_ldap", "cache_ttl": 300000 } } } } }, "chef_type": "role", "run_list": [] }

Could you please help me on it?

michaelklishin commented 2 years ago

I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :(