Skip to content

Commit b86ce82

Browse files
Saeid Hassan-AbadiSaeid Hassan-Abadi
authored andcommitted
Fix redis/icingadb config
1 parent 701c9d6 commit b86ce82

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

roles/icingadb/templates/icingadb.ini.j2

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ database:
3131
redis:
3232
host: {{ icingadb_redis_host }}
3333
{% if icingadb_redis_tls is defined %}
34-
port: 0
35-
tls-port: {{ icingadb_redis_tls_port | default(6380) }}
36-
{% elif icingadb_redis_port is defined %}
34+
port: {{ icingadb_redis_tls_port | default(icingadb_redis_port) }}
35+
{% else %}
3736
port: {{ icingadb_redis_port }}
3837
{% endif %}
3938
{% if icingadb_redis_password is defined %}

roles/icingadb_redis/templates/icingadb-redis.conf.j2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ bind {% for host in icingadb_redis_binds %}
66
{% endfor %}
77

88
protected-mode {{ icingadb_redis_protected_mode | string }}
9-
port {{ icingadb_redis_port }}
10-
{% if icingadb_redis_tls_port is defined %}
11-
tls-port {{ icingadb_redis_tls_port }}
9+
{% if icingadb_redis_tls is defined %}
10+
port: 0
11+
tls-port: {{ icingadb_redis_tls_port | default(icingadb_redis_port) }}
12+
{% else %}
13+
port: {{ icingadb_redis_port }}
1214
{% endif %}
1315
tcp-backlog {{ icingadb_redis_tcp_backlog }}
1416
timeout {{ icingadb_redis_timeout }}

0 commit comments

Comments
 (0)