commit | author | age
|
1de623
|
1 |
# {{ ansible_managed }} |
OB |
2 |
|
|
3 |
daemonize yes |
|
4 |
pidfile /var/run/redis/{{ redis_daemon }}.pid |
|
5 |
port {{ redis_port }} |
|
6 |
bind {{ redis_bind_interface }} |
|
7 |
|
|
8 |
{% if redis_unixsocket %} |
|
9 |
unixsocket {{ redis_unixsocket }} |
|
10 |
{% endif %} |
|
11 |
|
|
12 |
timeout {{ redis_timeout }} |
|
13 |
|
|
14 |
loglevel {{ redis_loglevel }} |
|
15 |
logfile {{ redis_logfile }} |
|
16 |
|
|
17 |
# To enable logging to the system logger, just set 'syslog-enabled' to yes, |
|
18 |
# and optionally update the other syslog parameters to suit your needs. |
|
19 |
# syslog-enabled no |
|
20 |
# syslog-ident redis |
|
21 |
# syslog-facility local0 |
|
22 |
|
|
23 |
databases {{ redis_databases }} |
|
24 |
|
|
25 |
{% for save in redis_save %} |
|
26 |
save {{ save }} |
|
27 |
{% endfor %} |
|
28 |
|
|
29 |
rdbcompression {{ redis_rdbcompression }} |
|
30 |
dbfilename {{ redis_dbfilename }} |
|
31 |
dir {{ redis_dbdir }} |
|
32 |
|
|
33 |
# maxclients 128 |
|
34 |
|
|
35 |
{% if redis_maxmemory %} |
|
36 |
maxmemory {{ redis_maxmemory }} |
|
37 |
maxmemory-policy {{ redis_maxmemory_policy }} |
|
38 |
maxmemory-samples {{ redis_maxmemory_samples }} |
|
39 |
{% endif %} |
|
40 |
|
|
41 |
appendonly {{ redis_appendonly }} |
|
42 |
appendfsync {{ redis_appendfsync }} |
|
43 |
no-appendfsync-on-rewrite no |
|
44 |
|
|
45 |
{% for include in redis_includes %} |
|
46 |
include {{ include }} |
|
47 |
{% endfor %} |
|
48 |
|
|
49 |
{% if redis_requirepass %} |
|
50 |
requirepass {{ redis_requirepass }} |
|
51 |
{% endif %} |
|
52 |
|
|
53 |
{% for redis_disabled_command in redis_disabled_commands %} |
|
54 |
rename-command {{ redis_disabled_command }} "" |
|
55 |
{% endfor %} |