xoxys.redis/templates/etc/containers/systemd/redis.sys.env.j2

18 lines
705 B
Plaintext
Raw Permalink Normal View History

2023-08-05 21:49:35 +00:00
#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
REDIS_ARGS=--timeout {{ redis_timeout }} --loglevel {{ redis_log_level }} --databases {{ redis_databases }} \
{% for save in redis_save %}
--save '{{ save }}'\
{% endfor %}
--rdbcompression {{ redis_rdbcompression | bool | ternary("yes", "no") }} \
--appendonly {{ redis_appendonly | bool | ternary("yes", "no") }} \
--appendfsync {{ redis_appendfsync }} \
--no-appendfsync-on-rewrite no \
{% if redis_requirepass is defined %}
--requirepass {{ redis_requirepass }} \
{% endif %}
{% for command in redis_disabled_commands %}
--rename-command '{{ command }} ""' \
{% endfor %}
--port 6379