Accept multiple bind addresses in Redis config
As specified in https://redis.io/docs/management/config-file/, Redis can bind to multiple addresses with a space-separated field. Previously attempting to do this without setting `gitlab_rails['redis_host']` would fail because a URI could not be built with a space in the hostname. This commit now splits the string with the space and picks the first address as the default Redis host. Relates to https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8465 Changelog: added
parent
9273fa9e6ee6
No related branches found
No related tags found
Showing
- files/gitlab-cookbooks/gitlab/libraries/redis.rb 2 additions, 1 deletionfiles/gitlab-cookbooks/gitlab/libraries/redis.rb
- files/gitlab-cookbooks/package/libraries/helpers/new_redis_helper/server.rb 1 addition, 1 deletion...ooks/package/libraries/helpers/new_redis_helper/server.rb
- files/gitlab-cookbooks/redis/templates/default/gitlab-redis-cli-rc.erb 1 addition, 1 deletion...cookbooks/redis/templates/default/gitlab-redis-cli-rc.erb
- spec/chef/cookbooks/gitlab/libraries/redis_spec.rb 17 additions, 0 deletionsspec/chef/cookbooks/gitlab/libraries/redis_spec.rb
- spec/chef/cookbooks/redis/recipes/redis_spec.rb 41 additions, 1 deletionspec/chef/cookbooks/redis/recipes/redis_spec.rb
Please register or sign in to comment