Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
feat: confiure redis sentinel authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ziegner <[email protected]>
  • Loading branch information
Norman Ziegner committed Oct 10, 2023
1 parent f31eda2 commit 89d925c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ redis_password: 'changeme'

_Caution: You have to use your own private and encrypted password here._

#### Password to Authenticate Redis Sentinels

Support for Redis Sentinel password authentication was introduced in GitLab 16.1.

```yaml
redis_sentinel_password: 'changeme'
```

_Caution: You have to use your own private and encrypted password here._

#### Reference Name of the Redis Cluster

Choose a name of the Redis Cluster for references:
Expand Down
5 changes: 4 additions & 1 deletion templates/gitlab.rb.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ gitlab_rails['redis_sentinels'] = [
{ "host" => "{{ redis_sentinel_ip }}", "port" => "{{ redis_sentinel_port }}" },
{% endfor %}
]
gitlab_rails['monitoring_whitelist'] = ["{{ gitlab_ip_range }}"]
{% if redis_sentinel_password %}
gitlab_rails['redis_sentinels_password'] = "{{ redis_sentinel_password }}"
{% endif %}
{% endif %}
gitlab_rails['monitoring_whitelist'] = ["{{ gitlab_ip_range }}"]

{% if use_internal_gitaly %}
git_data_dirs({"default" => {"path" => "{{ gitlab_git_data_dir }}"} })
Expand Down

0 comments on commit 89d925c

Please sign in to comment.