xoxys.redis/templates/etc/redis.conf.j2
Robert Kaussow f1a5ae932f
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2021-06-01 21:32:28 +02:00

62 lines
1.5 KiB
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
daemonize {{ redis_daemonize | bool | ternary("yes", "no") }}
supervised {{ redis_supervised }}
pidfile {{ redis_pidfile }}
port {{ redis_port }}
bind {{ redis_bind_interface }}
{% if redis_unixsocket is defined and redis_unixsocket %}
unixsocket {{ redis_unixsocket }}
{% endif %}
timeout {{ redis_timeout }}
loglevel {{ redis_loglevel }}
logfile {{ redis_logfile }}
# To enable logging to the system logger, just set 'syslog-enabled' to yes,
# and optionally update the other syslog parameters to suit your needs.
# syslog-enabled no
# syslog-ident redis
# syslog-facility local0
databases {{ redis_databases }}
{% for save in redis_save %}
save {{ save }}
{% endfor %}
rdbcompression {{ redis_rdbcompression | bool | ternary("yes", "no") }}
dbfilename {{ redis_dbfilename }}
dir {{ redis_dbdir }}
# maxclients 128
{% if redis_maxmemory %}
maxmemory {{ redis_maxmemory }}
maxmemory-policy {{ redis_maxmemory_policy }}
maxmemory-samples {{ redis_maxmemory_samples }}
{% endif %}
appendonly {{ redis_appendonly | bool | ternary("yes", "no") }}
appendfsync {{ redis_appendfsync }}
no-appendfsync-on-rewrite no
{% if redis_includes %}
{% for include in redis_includes %}
include {{ include }}
{% endfor %}
{% endif %}
{% if redis_requirepass is defined and redis_requirepass %}
requirepass {{ redis_requirepass }}
{% endif %}
{% if redis_disabled_commands %}
{% for command in redis_disabled_commands %}
rename-command {{ command }} ""
{% endfor %}
{% endif %}