This repository was archived by the owner on May 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -238,15 +238,25 @@ use_internal_redis: 'false'
238238
239239# ### Password to Authenticate Redis Services within Cluster
240240
241- It is recommended to enable authentication for Redis Master, Redis Replica and
242- Redis Sentinel by providing the respective password :
241+ It is recommended to enable authentication for Redis Master and Redis Replicas
242+ by providing the respective password :
243243
244244` ` ` yaml
245245redis_password: 'changeme'
246246` ` `
247247
248248_Caution : You have to use your own private and encrypted password here._
249249
250+ # ### Password to Authenticate Redis Sentinels
251+
252+ Support for Redis Sentinel password authentication was introduced in GitLab 16.1.
253+
254+ ` ` ` yaml
255+ gitlab_redis_sentinel_password: 'changeme'
256+ ` ` `
257+
258+ _Caution : You have to use your own private and encrypted password here._
259+
250260# ### Reference Name of the Redis Cluster
251261
252262Choose a name of the Redis Cluster for references :
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ provisioner:
3030 host_vars :
3131 instancegitlab :
3232 gitlab_edition : " gitlab-ce"
33+ gitlab_ip_range : " 0.0.0.0/0"
3334 gitlab_additional_configurations :
3435 - package :
3536 - key : " modify_kernel_parameters"
Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ gitlab_rails['redis_sentinels'] = [
2424 { "host" => "{{ redis_sentinel_ip }}", "port" => "{{ redis_sentinel_port }}" },
2525{% endfor %}
2626]
27- gitlab_rails['monitoring_whitelist'] = ["{{ gitlab_ip_range }}"]
27+ {% if gitlab_redis_sentinel_password | default ('' ) | length %}
28+ gitlab_rails['redis_sentinels_password'] = "{{ gitlab_redis_sentinel_password }}"
29+ {% endif %}
2830{% endif %}
31+ gitlab_rails['monitoring_whitelist'] = ["{{ gitlab_ip_range }}"]
2932
3033{% if use_internal_gitaly %}
3134git_data_dirs({"default" => {"path" => "{{ gitlab_git_data_dir }}"} })
You can’t perform that action at this time.
0 commit comments