22 lines
648 B
Django/Jinja
22 lines
648 B
Django/Jinja
# Valkey Sentinel Configuration
|
|
# Generated by Ansible - do not edit manually
|
|
|
|
port 26379
|
|
bind {{ nebula_ip }}
|
|
|
|
# Sentinel monitoring configuration
|
|
sentinel monitor valkey-ha {{ hostvars['valkey-01']['nebula_ip'] }} 6379 2
|
|
sentinel auth-pass valkey-ha {{ valkey_admin_password }}
|
|
sentinel auth-user valkey-ha admin
|
|
sentinel down-after-milliseconds valkey-ha 5000
|
|
sentinel failover-timeout valkey-ha 60000
|
|
sentinel parallel-syncs valkey-ha 1
|
|
|
|
# Sentinel authentication
|
|
sentinel sentinel-user admin
|
|
sentinel sentinel-pass {{ valkey_admin_password }}
|
|
|
|
# Announce IP for Nebula network
|
|
sentinel announce-ip {{ nebula_ip }}
|
|
sentinel announce-port 26379
|