Skip to content

Commit 4c9f1e5

Browse files
authored
Merge pull request #395 from NETWAYS/fix/redis-tls-setting
Fix redis/icingadb config
2 parents 701c9d6 + 48573ca commit 4c9f1e5

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bugfixes:
2+
- |
3+
The TLS configuration for Icinga DB / Icinga DB Redis has been faulty. Both configuration templates now render properly based on the given TLS related variables.
4+
If using TLS in Icinga DB Redis, the non-TLS port will be disabled. The Icinga DB (daemon) configuration now uses the correct YAML key for both the TLS port and the non-TLS port.

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: 4 additions & 2 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+
{% if icingadb_redis_tls | default(false) %}
10+
port 0
11+
tls-port {{ icingadb_redis_tls_port | default(icingadb_redis_port) }}
12+
{% else %}
913
port {{ icingadb_redis_port }}
10-
{% if icingadb_redis_tls_port is defined %}
11-
tls-port {{ icingadb_redis_tls_port }}
1214
{% endif %}
1315
tcp-backlog {{ icingadb_redis_tcp_backlog }}
1416
timeout {{ icingadb_redis_timeout }}

0 commit comments

Comments
 (0)