Skip to content

Commit

Permalink
Adds password capabilities to icingadb-redis configuration (#202)
Browse files Browse the repository at this point in the history
* Adds password capabilities to icingadb-redis configuration
  • Loading branch information
mocdaniel authored Nov 10, 2023
1 parent bb22907 commit a63eb0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/role-icingadb_redis/role-icingadb_redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +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: 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.
4 changes: 4 additions & 0 deletions roles/icingadb_redis/templates/icingadb-redis.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ logfile {{ icingadb_redis_logfile }}
databases {{ icingadb_redis_databases }}
always-show-logo {{ icingadb_redis_always_show_logo }}

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

################################ SNAPSHOTTING ################################
#
# Save the DB on disk:
Expand Down

0 comments on commit a63eb0d

Please sign in to comment.