Add support for enabling requirepass in Sentinel configuration
In https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/6921, we're adding support for configuring a password to authenticate with Redis Sentinel. This commit adds support for the `requirepass` config option so that the Omnibus-provided Sentinel can require a password. If `sentinel['password']` is set, the Sentinel instance passwords default to this password to make it easy to enable this option. Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/235938 Changelog: added
parent
88bea4d78df8
No related branches found
No related tags found
Showing
- files/gitlab-config-template/gitlab.rb.template 3 additions, 0 deletionsfiles/gitlab-config-template/gitlab.rb.template
- files/gitlab-cookbooks/gitlab-ee/attributes/default.rb 1 addition, 0 deletionsfiles/gitlab-cookbooks/gitlab-ee/attributes/default.rb
- files/gitlab-cookbooks/gitlab-ee/libraries/sentinel_helper.rb 8 additions, 1 deletion...s/gitlab-cookbooks/gitlab-ee/libraries/sentinel_helper.rb
- files/gitlab-cookbooks/gitlab-ee/resources/sentinel_service.rb 1 addition, 0 deletions.../gitlab-cookbooks/gitlab-ee/resources/sentinel_service.rb
- files/gitlab-cookbooks/gitlab-ee/templates/default/sentinel.conf.erb 15 additions, 0 deletions...b-cookbooks/gitlab-ee/templates/default/sentinel.conf.erb
- files/gitlab-cookbooks/gitlab/libraries/redis.rb 11 additions, 0 deletionsfiles/gitlab-cookbooks/gitlab/libraries/redis.rb
- files/gitlab-cookbooks/gitlab/libraries/redis_helper.rb 1 addition, 0 deletionsfiles/gitlab-cookbooks/gitlab/libraries/redis_helper.rb
- files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb 1 addition, 1 deletionfiles/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb
- spec/chef/cookbooks/gitlab-ee/libraries/sentinel_helper_spec.rb 42 additions, 0 deletions...hef/cookbooks/gitlab-ee/libraries/sentinel_helper_spec.rb
- spec/chef/cookbooks/gitlab-ee/recipes/sentinel_spec.rb 17 additions, 0 deletionsspec/chef/cookbooks/gitlab-ee/recipes/sentinel_spec.rb
- spec/chef/cookbooks/gitlab/libraries/redis_spec.rb 27 additions, 0 deletionsspec/chef/cookbooks/gitlab/libraries/redis_spec.rb
- spec/chef/cookbooks/gitlab/recipes/gitlab-rails_spec.rb 1 addition, 1 deletionspec/chef/cookbooks/gitlab/recipes/gitlab-rails_spec.rb
Loading
Please register or sign in to comment