29 lines
790 B
YAML
29 lines
790 B
YAML
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
file:
|
|
/opt/bitnami/redis-sentinel/etc/sentinel.conf:
|
|
exists: true
|
|
contents:
|
|
- "port 26379"
|
|
- "bind 0.0.0.0"
|
|
- /pidfile.*/opt/bitnami/redis-sentinel/tmp/redis-sentinel.pid/
|
|
- "daemonize no"
|
|
- 'logfile ""'
|
|
command:
|
|
check-redis-server:
|
|
exec: timeout --preserve-status 5 redis-server /opt/bitnami/redis-sentinel/etc/sentinel.conf --sentinel
|
|
exit-status: 0
|
|
timeout: 10000
|
|
stdout:
|
|
- "Configuration loaded"
|
|
- /monitor.*quorum/
|
|
{{ range $binary := .Vars.binaries }}
|
|
check-{{ $binary }}-ssl:
|
|
exec: ldd /opt/bitnami/redis-sentinel/bin/{{ $binary }}
|
|
exit-status: 0
|
|
stdout:
|
|
- "libcrypto.so"
|
|
- "libssl.so"
|
|
{{ end }}
|