This repository was archived by the owner on May 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,6 +94,12 @@ Redis Sentinel service file path:
9494redis_sentinel_service_file: '{{ redis_systemd_dir }}/redis-sentinel.service'
9595` ` `
9696
97+ Password for Redis Sentinel. This is unset by default.
98+
99+ ` ` ` yaml
100+ redis_sentinel_password: 'changeme'
101+ ` ` `
102+
97103Redis configuration directory path :
98104` ` ` yaml
99105redis_configuration_dir: '/etc/redis'
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ provisioner:
2424 playbooks :
2525 prepare : prepare.yml
2626 converge : converge.yml
27+ inventory :
28+ hosts :
29+ all :
30+ vars :
31+ redis_sentinel_password : " 123456"
2732verifier :
2833 name : ansible
2934scenario :
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ dir /var/lib/redis/
1212bind {{ redis_instance_ip }}
1313port 26379
1414
15+ {% if (redis_sentinel_password is defined ) and (redis_sentinel_password |length > 0) %}
16+ requirepass "{{ redis_sentinel_password }}"
17+ {% endif %}
18+
1519sentinel monitor {{ redis_cluster_name }} {{ redis_master_instance_ip }} 6379 2
1620sentinel auth-pass {{ redis_cluster_name }} {{ redis_password }}
1721sentinel down-after-milliseconds {{ redis_cluster_name }} 10000
You can’t perform that action at this time.
0 commit comments