Skip to content

Commit

Permalink
Changes handling of redis password variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mocdaniel committed Nov 10, 2023
1 parent e236055 commit 1918ccd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/role-icingadb_redis/role-icingadb_redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Many variables are predefined by Icinga to make the installation easier. These a
* `icingadb_redis_port: string`
* Defines redis server port, default: `6380`

* `icingadb_redis_password: bool|string`
* Defaults to `False`, which means no password. Adds the `requirepass <string>` directive to Redis' configuration if set to a string.
* `icingadb_redis_password: string`
* Adds the `requirepass <string>` directive to Redis' configuration if set.

There is a whole set of `defaults` in place for craeting a sane Redis installation. Should you need to fine-tune settings, please consult [the defaults at `icingadb_redis/defaults/main.yml`](../../roles/icingadb_redis/defaults/main.yml) for the specific variables.
1 change: 0 additions & 1 deletion roles/icingadb_redis/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ icingadb_redis_binds:
- "127.0.0.1"
- "-::1"
icingadb_redis_port: 6380
icingadb_redis_password: False
icingadb_redis_tcp_backlog: 511
icingadb_redis_timeout: 0
icingadb_redis_tcp_keepalive: 300
Expand Down
2 changes: 1 addition & 1 deletion roles/icingadb_redis/templates/icingadb-redis.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ logfile {{ icingadb_redis_logfile }}
databases {{ icingadb_redis_databases }}
always-show-logo {{ icingadb_redis_always_show_logo }}

{% if icingadb_redis_password %}
{% if icingadb_redis_password is defined %}
requirepass {{ icingadb_redis_password }}
{% endif %}

Expand Down

0 comments on commit 1918ccd

Please sign in to comment.