Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392454
REFERENCE.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
51 KB
Subscribers
None
REFERENCE.md
View Options
#
Reference
<!--
DO
NOT
EDIT
:
This
document
was
generated
by
Puppet
Strings
-->
##
Table
of
Contents
###
Classes
####
Public
Classes
*
[
`
redis
`
](#
redis
):
This
class
installs
redis
*
[
`
redis
::
administration
`
](#
redisadministration
):
Allows
various
administrative
settings
for
Redis
*
[
`
redis
::
globals
`
](#
redisglobals
):
Set
a
global
config
for
Redis
*
[
`
redis
::
sentinel
`
](#
redissentinel
):
Install
redis
-
sentinel
####
Private
Classes
*
`
redis
::
config
`
:
This
class
provides
configuration
for
Redis
.
*
`
redis
::
install
`
:
This
class
installs
the
application
.
*
`
redis
::
params
`
:
This
class
provides
a
number
of
parameters
.
*
`
redis
::
preinstall
`
:
Provides
anything
required
by
the
install
class
,
such
as
package
repositories
.
*
`
redis
::
service
`
:
This
class
manages
the
Redis
daemon
.
*
`
redis
::
ulimit
`
:
Redis
class
for
configuring
ulimit
Used
to
DRY
up
the
config
class
,
and
move
the
logic
for
ulimit
changes
all
into
one
place
.
Parameters
are
###
Defined
types
*
[
`
redis
::
instance
`
](#
redisinstance
):
Allows
the
configuration
of
multiple
redis
configurations
on
one
machine
###
Functions
*
[
`
redis
::
get
`
](#
redisget
):
```
###
Data
types
*
[
`
Redis
::
LogLevel
`
](#
redisloglevel
):
Specify
the
server
verbosity
level
.
*
[
`
Redis
::
RedisUrl
`
](#
redisredisurl
)
###
Tasks
*
[
`
redis_cli
`
](#
redis_cli
):
Executes
a
redis
-
cli
command
on
the
target
system
##
Classes
###
<
a
name
=
"redis"
></
a
>
`
redis
`
This
class
installs
redis
####
Examples
#####
Default
install
```
puppet
include
redis
```
#####
Slave
Node
```
puppet
class
{
'
::
redis
'
:
bind
=>
'
10.0
.
1.2
'
,
slaveof
=>
'
10.0
.
1.1
6379
'
,
}
```
#####
Binding
on
multiple
interfaces
```
puppet
class
{
'
redis
'
:
bind
=>
[
'
127.0
.
0.1
'
,
'
10.0
.
0.1
'
,
'
10.1
.
0.1
'
],
}
```
#####
Binding
on
all
interfaces
```
puppet
class
{
'
redis
'
:
bind
=>
[],
}
```
####
Parameters
The
following
parameters
are
available
in
the
`
redis
`
class
:
*
[
`
activerehashing
`
](#
activerehashing
)
*
[
`
aof_load_truncated
`
](#
aof_load_truncated
)
*
[
`
aof_rewrite_incremental_fsync
`
](#
aof_rewrite_incremental_fsync
)
*
[
`
appendfilename
`
](#
appendfilename
)
*
[
`
appendfsync
`
](#
appendfsync
)
*
[
`
appendonly
`
](#
appendonly
)
*
[
`
auto_aof_rewrite_min_size
`
](#
auto_aof_rewrite_min_size
)
*
[
`
auto_aof_rewrite_percentage
`
](#
auto_aof_rewrite_percentage
)
*
[
`
bind
`
](#
bind
)
*
[
`
config_dir
`
](#
config_dir
)
*
[
`
config_dir_mode
`
](#
config_dir_mode
)
*
[
`
config_file_orig
`
](#
config_file_orig
)
*
[
`
config_file
`
](#
config_file
)
*
[
`
config_file_mode
`
](#
config_file_mode
)
*
[
`
config_group
`
](#
config_group
)
*
[
`
config_owner
`
](#
config_owner
)
*
[
`
conf_template
`
](#
conf_template
)
*
[
`
daemonize
`
](#
daemonize
)
*
[
`
default_install
`
](#
default_install
)
*
[
`
databases
`
](#
databases
)
*
[
`
dbfilename
`
](#
dbfilename
)
*
[
`
extra_config_file
`
](#
extra_config_file
)
*
[
`
hash_max_ziplist_entries
`
](#
hash_max_ziplist_entries
)
*
[
`
hash_max_ziplist_value
`
](#
hash_max_ziplist_value
)
*
[
`
hll_sparse_max_bytes
`
](#
hll_sparse_max_bytes
)
*
[
`
hz
`
](#
hz
)
*
[
`
latency_monitor_threshold
`
](#
latency_monitor_threshold
)
*
[
`
list_max_ziplist_entries
`
](#
list_max_ziplist_entries
)
*
[
`
list_max_ziplist_value
`
](#
list_max_ziplist_value
)
*
[
`
log_dir
`
](#
log_dir
)
*
[
`
log_dir_mode
`
](#
log_dir_mode
)
*
[
`
log_file
`
](#
log_file
)
*
[
`
log_level
`
](#
log_level
)
*
[
`
manage_repo
`
](#
manage_repo
)
*
[
`
manage_package
`
](#
manage_package
)
*
[
`
managed_by_cluster_manager
`
](#
managed_by_cluster_manager
)
*
[
`
masterauth
`
](#
masterauth
)
*
[
`
maxclients
`
](#
maxclients
)
*
[
`
maxmemory
`
](#
maxmemory
)
*
[
`
maxmemory_policy
`
](#
maxmemory_policy
)
*
[
`
maxmemory_samples
`
](#
maxmemory_samples
)
*
[
`
min_slaves_max_lag
`
](#
min_slaves_max_lag
)
*
[
`
min_slaves_to_write
`
](#
min_slaves_to_write
)
*
[
`
no_appendfsync_on_rewrite
`
](#
no_appendfsync_on_rewrite
)
*
[
`
notify_keyspace_events
`
](#
notify_keyspace_events
)
*
[
`
notify_service
`
](#
notify_service
)
*
[
`
package_ensure
`
](#
package_ensure
)
*
[
`
package_name
`
](#
package_name
)
*
[
`
pid_file
`
](#
pid_file
)
*
[
`
port
`
](#
port
)
*
[
`
protected_mode
`
](#
protected_mode
)
*
[
`
ppa_repo
`
](#
ppa_repo
)
*
[
`
rdbcompression
`
](#
rdbcompression
)
*
[
`
rename_commands
`
](#
rename_commands
)
*
[
`
repl_backlog_size
`
](#
repl_backlog_size
)
*
[
`
repl_backlog_ttl
`
](#
repl_backlog_ttl
)
*
[
`
repl_disable_tcp_nodelay
`
](#
repl_disable_tcp_nodelay
)
*
[
`
repl_ping_slave_period
`
](#
repl_ping_slave_period
)
*
[
`
repl_timeout
`
](#
repl_timeout
)
*
[
`
requirepass
`
](#
requirepass
)
*
[
`
save_db_to_disk
`
](#
save_db_to_disk
)
*
[
`
save_db_to_disk_interval
`
](#
save_db_to_disk_interval
)
*
[
`
service_manage
`
](#
service_manage
)
*
[
`
service_enable
`
](#
service_enable
)
*
[
`
service_ensure
`
](#
service_ensure
)
*
[
`
service_group
`
](#
service_group
)
*
[
`
service_name
`
](#
service_name
)
*
[
`
service_user
`
](#
service_user
)
*
[
`
set_max_intset_entries
`
](#
set_max_intset_entries
)
*
[
`
slave_priority
`
](#
slave_priority
)
*
[
`
slave_read_only
`
](#
slave_read_only
)
*
[
`
slave_serve_stale_data
`
](#
slave_serve_stale_data
)
*
[
`
slaveof
`
](#
slaveof
)
*
[
`
slowlog_log_slower_than
`
](#
slowlog_log_slower_than
)
*
[
`
slowlog_max_len
`
](#
slowlog_max_len
)
*
[
`
stop_writes_on_bgsave_error
`
](#
stop_writes_on_bgsave_error
)
*
[
`
syslog_enabled
`
](#
syslog_enabled
)
*
[
`
syslog_facility
`
](#
syslog_facility
)
*
[
`
tcp_backlog
`
](#
tcp_backlog
)
*
[
`
tcp_keepalive
`
](#
tcp_keepalive
)
*
[
`
timeout
`
](#
timeout
)
*
[
`
ulimit
`
](#
ulimit
)
*
[
`
ulimit_managed
`
](#
ulimit_managed
)
*
[
`
unixsocket
`
](#
unixsocket
)
*
[
`
unixsocketperm
`
](#
unixsocketperm
)
*
[
`
workdir
`
](#
workdir
)
*
[
`
workdir_mode
`
](#
workdir_mode
)
*
[
`
zset_max_ziplist_entries
`
](#
zset_max_ziplist_entries
)
*
[
`
zset_max_ziplist_value
`
](#
zset_max_ziplist_value
)
*
[
`
cluster_enabled
`
](#
cluster_enabled
)
*
[
`
cluster_config_file
`
](#
cluster_config_file
)
*
[
`
cluster_node_timeout
`
](#
cluster_node_timeout
)
*
[
`
cluster_slave_validity_factor
`
](#
cluster_slave_validity_factor
)
*
[
`
cluster_require_full_coverage
`
](#
cluster_require_full_coverage
)
*
[
`
cluster_migration_barrier
`
](#
cluster_migration_barrier
)
*
[
`
instances
`
](#
instances
)
*
[
`
output_buffer_limit_slave
`
](#
output_buffer_limit_slave
)
*
[
`
output_buffer_limit_pubsub
`
](#
output_buffer_limit_pubsub
)
*
[
`
manage_service_file
`
](#
manage_service_file
)
#####
<
a
name
=
"activerehashing"
></
a
>
`
activerehashing
`
Data
type
:
`
Boolean
`
Enable
/
disable
active
rehashing
.
Default
value
:
``
true
``
#####
<
a
name
=
"aof_load_truncated"
></
a
>
`
aof_load_truncated
`
Data
type
:
`
Boolean
`
Enable
/
disable
loading
truncated
AOF
file
Default
value
:
``
true
``
#####
<
a
name
=
"aof_rewrite_incremental_fsync"
></
a
>
`
aof_rewrite_incremental_fsync
`
Data
type
:
`
Boolean
`
Enable
/
disable
fsync
for
AOF
file
Default
value
:
``
true
``
#####
<
a
name
=
"appendfilename"
></
a
>
`
appendfilename
`
Data
type
:
`
String
[
1
]
`
The
name
of
the
append
only
file
Default
value
:
`'
appendonly
.
aof
'`
#####
<
a
name
=
"appendfsync"
></
a
>
`
appendfsync
`
Data
type
:
`
Enum
[
'
no
'
,
'
always
'
,
'
everysec
'
]
`
Adjust
fsync
mode
Default
value
:
`'
everysec
'`
#####
<
a
name
=
"appendonly"
></
a
>
`
appendonly
`
Data
type
:
`
Boolean
`
Enable
/
disable
appendonly
mode
.
Default
value
:
``
false
``
#####
<
a
name
=
"auto_aof_rewrite_min_size"
></
a
>
`
auto_aof_rewrite_min_size
`
Data
type
:
`
String
[
1
]
`
Adjust
minimum
size
for
auto
-
aof
-
rewrite
.
Default
value
:
`'
64
mb
'`
#####
<
a
name
=
"auto_aof_rewrite_percentage"
></
a
>
`
auto_aof_rewrite_percentage
`
Data
type
:
`
Integer
[
0
]
`
Adjust
percentatge
for
auto
-
aof
-
rewrite
.
Default
value
:
`
100
`
#####
<
a
name
=
"bind"
></
a
>
`
bind
`
Data
type
:
`
Variant
[
Stdlib
::
IP
::
Address
,
Array
[
Stdlib
::
IP
::
Address
]]
`
Configure
which
IP
address
(
es
)
to
listen
on
.
To
bind
on
all
interfaces
,
use
an
empty
array
.
Default
value
:
`
[
'
127.0
.
0.1
'
]
`
#####
<
a
name
=
"config_dir"
></
a
>
`
config_dir
`
Data
type
:
`
Stdlib
::
Absolutepath
`
Directory
containing
the
configuration
files
.
Default
value
:
`
$
redis
::
params
::
config_dir
`
#####
<
a
name
=
"config_dir_mode"
></
a
>
`
config_dir_mode
`
Data
type
:
`
Stdlib
::
Filemode
`
Adjust
mode
for
directory
containing
configuration
files
.
Default
value
:
`
$
redis
::
params
::
config_dir_mode
`
#####
<
a
name
=
"config_file_orig"
></
a
>
`
config_file_orig
`
Data
type
:
`
Stdlib
::
Absolutepath
`
The
location
and
name
of
a
config
file
that
provides
the
source
Default
value
:
`
$
redis
::
params
::
config_file_orig
`
#####
<
a
name
=
"config_file"
></
a
>
`
config_file
`
Data
type
:
`
Stdlib
::
Absolutepath
`
Adjust
main
configuration
file
.
Default
value
:
`
$
redis
::
params
::
config_file
`
#####
<
a
name
=
"config_file_mode"
></
a
>
`
config_file_mode
`
Data
type
:
`
Stdlib
::
Filemode
`
Adjust
permissions
for
configuration
files
.
Default
value
:
`'
0644
'`
#####
<
a
name
=
"config_group"
></
a
>
`
config_group
`
Data
type
:
`
String
[
1
]
`
Adjust
filesystem
group
for
config
files
.
Default
value
:
`
$
redis
::
params
::
config_group
`
#####
<
a
name
=
"config_owner"
></
a
>
`
config_owner
`
Data
type
:
`
String
[
1
]
`
Adjust
filesystem
owner
for
config
files
.
Default
value
:
`
$
redis
::
params
::
config_owner
`
#####
<
a
name
=
"conf_template"
></
a
>
`
conf_template
`
Data
type
:
`
String
[
1
]
`
Define
which
template
to
use
.
Default
value
:
`'
redis
/
redis
.
conf
.
epp
'`
#####
<
a
name
=
"daemonize"
></
a
>
`
daemonize
`
Data
type
:
`
Boolean
`
Have
Redis
run
as
a
daemon
.
Default
value
:
`
$
redis
::
params
::
daemonize
`
#####
<
a
name
=
"default_install"
></
a
>
`
default_install
`
Data
type
:
`
Boolean
`
Configure
a
default
install
of
redis
.
Default
value
:
``
true
``
#####
<
a
name
=
"databases"
></
a
>
`
databases
`
Data
type
:
`
Integer
[
1
]
`
Set
the
number
of
databases
.
Default
value
:
`
16
`
#####
<
a
name
=
"dbfilename"
></
a
>
`
dbfilename
`
Data
type
:
`
Variant
[
String
[
1
],
Boolean
]
`
The
filename
where
to
dump
the
DB
Default
value
:
`'
dump
.
rdb
'`
#####
<
a
name
=
"extra_config_file"
></
a
>
`
extra_config_file
`
Data
type
:
`
Optional
[
String
]
`
Optional
extra
config
file
to
include
Default
value
:
``
undef
``
#####
<
a
name
=
"hash_max_ziplist_entries"
></
a
>
`
hash_max_ziplist_entries
`
Data
type
:
`
Integer
[
0
]
`
Set
max
ziplist
entries
for
hashes
.
Default
value
:
`
512
`
#####
<
a
name
=
"hash_max_ziplist_value"
></
a
>
`
hash_max_ziplist_value
`
Data
type
:
`
Integer
[
0
]
`
Set
max
ziplist
values
for
hashes
.
Default
value
:
`
64
`
#####
<
a
name
=
"hll_sparse_max_bytes"
></
a
>
`
hll_sparse_max_bytes
`
Data
type
:
`
Integer
[
0
]
`
HyperLogLog
sparse
representation
bytes
limit
Default
value
:
`
3000
`
#####
<
a
name
=
"hz"
></
a
>
`
hz
`
Data
type
:
`
Integer
[
1
,
500
]
`
Set
redis
background
tasks
frequency
Default
value
:
`
10
`
#####
<
a
name
=
"latency_monitor_threshold"
></
a
>
`
latency_monitor_threshold
`
Data
type
:
`
Integer
[
0
]
`
Latency
monitoring
threshold
in
milliseconds
Default
value
:
`
0
`
#####
<
a
name
=
"list_max_ziplist_entries"
></
a
>
`
list_max_ziplist_entries
`
Data
type
:
`
Integer
[
0
]
`
Set
max
ziplist
entries
for
lists
.
Default
value
:
`
512
`
#####
<
a
name
=
"list_max_ziplist_value"
></
a
>
`
list_max_ziplist_value
`
Data
type
:
`
Integer
[
0
]
`
Set
max
ziplist
values
for
lists
.
Default
value
:
`
64
`
#####
<
a
name
=
"log_dir"
></
a
>
`
log_dir
`
Data
type
:
`
Stdlib
::
Absolutepath
`
Specify
directory
where
to
write
log
entries
.
Default
value
:
`
$
redis
::
params
::
log_dir
`
#####
<
a
name
=
"log_dir_mode"
></
a
>
`
log_dir_mode
`
Data
type
:
`
Stdlib
::
Filemode
`
Adjust
mode
for
directory
containing
log
files
.
Default
value
:
`
$
redis
::
params
::
log_dir_mode
`
#####
<
a
name
=
"log_file"
></
a
>
`
log_file
`
Data
type
:
`
String
`
Specify
file
where
to
write
log
entries
.
Relative
paths
will
be
prepended
with
log_dir
but
absolute
paths
are
also
accepted
.
Default
value
:
`'
redis
.
log
'`
#####
<
a
name
=
"log_level"
></
a
>
`
log_level
`
Data
type
:
`
Redis
::
LogLevel
`
Specify
the
server
verbosity
level
.
Default
value
:
`'
notice
'`
#####
<
a
name
=
"manage_repo"
></
a
>
`
manage_repo
`
Data
type
:
`
Boolean
`
Enable
/
disable
upstream
repository
configuration
.
Default
value
:
``
false
``
#####
<
a
name
=
"manage_package"
></
a
>
`
manage_package
`
Data
type
:
`
Boolean
`
Enable
/
disable
management
of
package
Default
value
:
``
true
``
#####
<
a
name
=
"managed_by_cluster_manager"
></
a
>
`
managed_by_cluster_manager
`
Data
type
:
`
Boolean
`
Choose
if
redis
will
be
managed
by
a
cluster
manager
such
as
pacemaker
or
rgmanager
Default
value
:
``
false
``
#####
<
a
name
=
"masterauth"
></
a
>
`
masterauth
`
Data
type
:
`
Optional
[
String
[
1
]]
`
If
the
master
is
password
protected
(
using
the
"requirepass"
configuration
Default
value
:
``
undef
``
#####
<
a
name
=
"maxclients"
></
a
>
`
maxclients
`
Data
type
:
`
Integer
[
1
]
`
Set
the
max
number
of
connected
clients
at
the
same
time
.
Default
value
:
`
10000
`
#####
<
a
name
=
"maxmemory"
></
a
>
`
maxmemory
`
Data
type
:
`
Any
`
Don
'
t
use
more
memory
than
the
specified
amount
of
bytes
.
Default
value
:
``
undef
``
#####
<
a
name
=
"maxmemory_policy"
></
a
>
`
maxmemory_policy
`
Data
type
:
`
Any
`
How
Redis
will
select
what
to
remove
when
maxmemory
is
reached
.
Default
value
:
``
undef
``
#####
<
a
name
=
"maxmemory_samples"
></
a
>
`
maxmemory_samples
`
Data
type
:
`
Any
`
Select
as
well
the
sample
size
to
check
.
Default
value
:
``
undef
``
#####
<
a
name
=
"min_slaves_max_lag"
></
a
>
`
min_slaves_max_lag
`
Data
type
:
`
Integer
[
0
]
`
The
lag
in
seconds
Default
value
:
`
10
`
#####
<
a
name
=
"min_slaves_to_write"
></
a
>
`
min_slaves_to_write
`
Data
type
:
`
Integer
[
0
]
`
Minimum
number
of
slaves
to
be
in
"online"
state
Default
value
:
`
0
`
#####
<
a
name
=
"no_appendfsync_on_rewrite"
></
a
>
`
no_appendfsync_on_rewrite
`
Data
type
:
`
Boolean
`
If
you
have
latency
problems
turn
this
to
'
true
'
.
Otherwise
leave
it
as
Default
value
:
``
false
``
#####
<
a
name
=
"notify_keyspace_events"
></
a
>
`
notify_keyspace_events
`
Data
type
:
`
Optional
[
String
[
1
]]
`
Which
events
to
notify
Pub
/
Sub
clients
about
events
happening
Default
value
:
``
undef
``
#####
<
a
name
=
"notify_service"
></
a
>
`
notify_service
`
Data
type
:
`
Boolean
`
You
may
disable
service
reloads
when
config
files
change
if
you
Default
value
:
``
true
``
#####
<
a
name
=
"package_ensure"
></
a
>
`
package_ensure
`
Data
type
:
`
String
[
1
]
`
Default
action
for
package
.
Default
value
:
`'
present
'`
#####
<
a
name
=
"package_name"
></
a
>
`
package_name
`
Data
type
:
`
String
[
1
]
`
Upstream
package
name
.
Default
value
:
`
$
redis
::
params
::
package_name
`
#####
<
a
name
=
"pid_file"
></
a
>
`
pid_file
`
Data
type
:
`
Stdlib
::
Absolutepath
`
Where
to
store
the
pid
.
Default
value
:
`
$
redis
::
params
::
pid_file
`
#####
<
a
name
=
"port"
></
a
>
`
port
`
Data
type
:
`
Stdlib
::
Port
`
Configure
which
port
to
listen
on
.
Default
value
:
`
6379
`
#####
<
a
name
=
"protected_mode"
></
a
>
`
protected_mode
`
Data
type
:
`
Boolean
`
Whether
protected
mode
is
enabled
or
not
.
Only
applicable
when
no
bind
is
set
.
Default
value
:
``
true
``
#####
<
a
name
=
"ppa_repo"
></
a
>
`
ppa_repo
`
Data
type
:
`
Optional
[
String
]
`
Specify
upstream
(
Ubuntu
)
PPA
entry
.
Default
value
:
`
$
redis
::
params
::
ppa_repo
`
#####
<
a
name
=
"rdbcompression"
></
a
>
`
rdbcompression
`
Data
type
:
`
Boolean
`
Enable
/
disable
compression
of
string
objects
using
LZF
when
dumping
.
Default
value
:
``
true
``
#####
<
a
name
=
"rename_commands"
></
a
>
`
rename_commands
`
Data
type
:
`
Hash
[
String
,
String
]
`
A
list
of
Redis
commands
to
rename
or
disable
for
security
reasons
Default
value
:
`
{}
`
#####
<
a
name
=
"repl_backlog_size"
></
a
>
`
repl_backlog_size
`
Data
type
:
`
String
[
1
]
`
The
replication
backlog
size
Default
value
:
`'
1
mb
'`
#####
<
a
name
=
"repl_backlog_ttl"
></
a
>
`
repl_backlog_ttl
`
Data
type
:
`
Integer
[
0
]
`
The
number
of
seconds
to
elapse
before
freeing
backlog
buffer
Default
value
:
`
3600
`
#####
<
a
name
=
"repl_disable_tcp_nodelay"
></
a
>
`
repl_disable_tcp_nodelay
`
Data
type
:
`
Boolean
`
Enable
/
disable
TCP_NODELAY
on
the
slave
socket
after
SYNC
Default
value
:
``
false
``
#####
<
a
name
=
"repl_ping_slave_period"
></
a
>
`
repl_ping_slave_period
`
Data
type
:
`
Integer
[
1
]
`
Slaves
send
PINGs
to
server
in
a
predefined
interval
.
It
'
s
possible
Default
value
:
`
10
`
#####
<
a
name
=
"repl_timeout"
></
a
>
`
repl_timeout
`
Data
type
:
`
Integer
[
1
]
`
Set
the
replication
timeout
for
:
Default
value
:
`
60
`
#####
<
a
name
=
"requirepass"
></
a
>
`
requirepass
`
Data
type
:
`
Optional
[
String
]
`
Require
clients
to
issue
AUTH
<
PASSWORD
>
before
processing
any
other
commands
.
Default
value
:
``
undef
``
#####
<
a
name
=
"save_db_to_disk"
></
a
>
`
save_db_to_disk
`
Data
type
:
`
Boolean
`
Set
if
save
db
to
disk
.
Default
value
:
``
true
``
#####
<
a
name
=
"save_db_to_disk_interval"
></
a
>
`
save_db_to_disk_interval
`
Data
type
:
`
Hash
`
save
the
dataset
every
N
seconds
if
there
are
at
least
M
changes
in
the
dataset
Default
value
:
`
{
'
900
'
=>
'1'
,
'
300
'
=>
'
10
'
,
'
60
'
=>
'
10000
'
}
`
#####
<
a
name
=
"service_manage"
></
a
>
`
service_manage
`
Data
type
:
`
Boolean
`
Specify
if
the
service
should
be
part
of
the
catalog
.
Default
value
:
``
true
``
#####
<
a
name
=
"service_enable"
></
a
>
`
service_enable
`
Data
type
:
`
Boolean
`
Enable
/
disable
daemon
at
boot
.
Default
value
:
``
true
``
#####
<
a
name
=
"service_ensure"
></
a
>
`
service_ensure
`
Data
type
:
`
Stdlib
::
Ensure
::
Service
`
Specify
if
the
server
should
be
running
.
Default
value
:
`'
running
'`
#####
<
a
name
=
"service_group"
></
a
>
`
service_group
`
Data
type
:
`
String
[
1
]
`
Specify
which
group
to
run
as
.
Default
value
:
`'
redis
'`
#####
<
a
name
=
"service_name"
></
a
>
`
service_name
`
Data
type
:
`
String
[
1
]
`
Specify
the
service
name
for
Init
or
Systemd
.
Default
value
:
`
$
redis
::
params
::
service_name
`
#####
<
a
name
=
"service_user"
></
a
>
`
service_user
`
Data
type
:
`
String
[
1
]
`
Specify
which
user
to
run
as
.
Default
value
:
`'
redis
'`
#####
<
a
name
=
"set_max_intset_entries"
></
a
>
`
set_max_intset_entries
`
Data
type
:
`
Integer
[
0
]
`
The
following
configuration
setting
sets
the
limit
in
the
size
of
the
set
in
order
to
use
this
special
memory
saving
encoding
.
Default
value
:
`
512
`
#####
<
a
name
=
"slave_priority"
></
a
>
`
slave_priority
`
Data
type
:
`
Integer
[
0
]
`
The
priority
number
for
slave
promotion
by
Sentinel
Default
value
:
`
100
`
#####
<
a
name
=
"slave_read_only"
></
a
>
`
slave_read_only
`
Data
type
:
`
Boolean
`
You
can
configure
a
slave
instance
to
accept
writes
or
not
.
Default
value
:
``
true
``
#####
<
a
name
=
"slave_serve_stale_data"
></
a
>
`
slave_serve_stale_data
`
Data
type
:
`
Boolean
`
When
a
slave
loses
its
connection
with
the
master
,
or
when
the
replication
is
still
in
progress
,
the
slave
can
act
in
two
different
ways
:
1
)
if
slave
-
serve
-
stale
-
data
is
set
to
'
yes
'
(
the
default
)
the
slave
will
still
reply
to
client
requests
,
possibly
with
out
of
date
data
,
or
the
data
set
may
just
be
empty
if
this
is
the
first
synchronization
.
2
)
if
slave
-
serve
-
stale
-
data
is
set
to
'
no
'
the
slave
will
reply
with
an
error
"SYNC with master in progress"
to
all
the
kind
of
commands
but
to
INFO
and
SLAVEOF
.
Default
value
:
``
true
``
#####
<
a
name
=
"slaveof"
></
a
>
`
slaveof
`
Data
type
:
`
Optional
[
String
[
1
]]
`
Use
slaveof
to
make
a
Redis
instance
a
copy
of
another
Redis
server
.
Default
value
:
``
undef
``
#####
<
a
name
=
"slowlog_log_slower_than"
></
a
>
`
slowlog_log_slower_than
`
Data
type
:
`
Integer
[
0
]
`
Tells
Redis
what
is
the
execution
time
,
in
microseconds
,
to
exceed
in
order
for
the
command
to
get
logged
.
Default
value
:
`
10000
`
#####
<
a
name
=
"slowlog_max_len"
></
a
>
`
slowlog_max_len
`
Data
type
:
`
Integer
[
0
]
`
Tells
Redis
what
is
the
length
to
exceed
in
order
for
the
command
to
get
logged
.
Default
value
:
`
1024
`
#####
<
a
name
=
"stop_writes_on_bgsave_error"
></
a
>
`
stop_writes_on_bgsave_error
`
Data
type
:
`
Boolean
`
If
false
then
Redis
will
continue
to
work
as
usual
even
if
there
are
problems
with
disk
,
permissions
,
and
so
forth
.
Default
value
:
``
true
``
#####
<
a
name
=
"syslog_enabled"
></
a
>
`
syslog_enabled
`
Data
type
:
`
Boolean
`
Enable
/
disable
logging
to
the
system
logger
.
Default
value
:
``
false
``
#####
<
a
name
=
"syslog_facility"
></
a
>
`
syslog_facility
`
Data
type
:
`
Optional
[
String
[
1
]]
`
Specify
the
syslog
facility
.
Must
be
USER
or
between
LOCAL0
-
LOCAL7
.
Default
value
:
``
undef
``
#####
<
a
name
=
"tcp_backlog"
></
a
>
`
tcp_backlog
`
Data
type
:
`
Integer
[
0
]
`
Sets
the
TCP
backlog
Default
value
:
`
511
`
#####
<
a
name
=
"tcp_keepalive"
></
a
>
`
tcp_keepalive
`
Data
type
:
`
Integer
[
0
]
`
TCP
keepalive
.
Default
value
:
`
0
`
#####
<
a
name
=
"timeout"
></
a
>
`
timeout
`
Data
type
:
`
Integer
[
0
]
`
Close
the
connection
after
a
client
is
idle
for
N
seconds
(
0
to
disable
).
Default
value
:
`
0
`
#####
<
a
name
=
"ulimit"
></
a
>
`
ulimit
`
Data
type
:
`
Integer
[
0
]
`
Limit
the
use
of
system
-
wide
resources
.
Default
value
:
`
65536
`
#####
<
a
name
=
"ulimit_managed"
></
a
>
`
ulimit_managed
`
Data
type
:
`
Boolean
`
Defines
wheter
the
max
number
of
open
files
for
the
systemd
service
unit
is
explicitly
managed
.
Default
value
:
``
true
``
#####
<
a
name
=
"unixsocket"
></
a
>
`
unixsocket
`
Data
type
:
`
Variant
[
Stdlib
::
Absolutepath
,
Enum
[
''
]]
`
Define
unix
socket
path
Default
value
:
`'
/
var
/
run
/
redis
/
redis
.
sock
'`
#####
<
a
name
=
"unixsocketperm"
></
a
>
`
unixsocketperm
`
Data
type
:
`
Variant
[
Stdlib
::
Filemode
,
Enum
[
''
]]
`
Define
unix
socket
file
permissions
Default
value
:
`'
0755
'`
#####
<
a
name
=
"workdir"
></
a
>
`
workdir
`
Data
type
:
`
Stdlib
::
Absolutepath
`
The
DB
will
be
written
inside
this
directory
,
with
the
filename
specified
above
using
the
'
dbfilename
'
configuration
directive
.
Default
value
:
`
$
redis
::
params
::
workdir
`
#####
<
a
name
=
"workdir_mode"
></
a
>
`
workdir_mode
`
Data
type
:
`
Stdlib
::
Filemode
`
Adjust
mode
for
data
directory
.
Default
value
:
`'
0750
'`
#####
<
a
name
=
"zset_max_ziplist_entries"
></
a
>
`
zset_max_ziplist_entries
`
Data
type
:
`
Integer
[
0
]
`
Set
max
entries
for
sorted
sets
.
Default
value
:
`
128
`
#####
<
a
name
=
"zset_max_ziplist_value"
></
a
>
`
zset_max_ziplist_value
`
Data
type
:
`
Integer
[
0
]
`
Set
max
values
for
sorted
sets
.
Default
value
:
`
64
`
#####
<
a
name
=
"cluster_enabled"
></
a
>
`
cluster_enabled
`
Data
type
:
`
Boolean
`
Enables
redis
3.0
cluster
functionality
Default
value
:
``
false
``
#####
<
a
name
=
"cluster_config_file"
></
a
>
`
cluster_config_file
`
Data
type
:
`
String
[
1
]
`
Config
file
for
saving
cluster
nodes
configuration
.
This
file
is
never
touched
by
humans
.
Only
set
if
cluster_enabled
is
true
Default
value
:
`'
nodes
.
conf
'`
#####
<
a
name
=
"cluster_node_timeout"
></
a
>
`
cluster_node_timeout
`
Data
type
:
`
Integer
[
1
]
`
Node
timeout
.
Only
set
if
cluster_enabled
is
true
Default
value
:
`
5000
`
#####
<
a
name
=
"cluster_slave_validity_factor"
></
a
>
`
cluster_slave_validity_factor
`
Data
type
:
`
Integer
[
0
]
`
Control
variable
to
disable
promoting
slave
in
case
of
disconnection
from
master
Only
set
if
cluster_enabled
is
true
Default
value
:
`
0
`
#####
<
a
name
=
"cluster_require_full_coverage"
></
a
>
`
cluster_require_full_coverage
`
Data
type
:
`
Boolean
`
If
false
Redis
Cluster
will
server
queries
even
if
requests
about
a
subset
of
keys
can
be
processed
Only
set
if
cluster_enabled
is
true
Default
value
:
``
true
``
#####
<
a
name
=
"cluster_migration_barrier"
></
a
>
`
cluster_migration_barrier
`
Data
type
:
`
Integer
[
0
]
`
Minimum
number
of
slaves
master
will
remain
connected
with
,
for
another
slave
to
migrate
to
a
master
which
is
no
longer
covered
by
any
slave
.
Only
set
if
cluster_enabled
is
true
Default
value
:
`
1
`
#####
<
a
name
=
"instances"
></
a
>
`
instances
`
Data
type
:
`
Hash
[
String
[
1
],
Hash
]
`
Iterate
through
multiple
instance
configurations
Default
value
:
`
{}
`
#####
<
a
name
=
"output_buffer_limit_slave"
></
a
>
`
output_buffer_limit_slave
`
Data
type
:
`
String
[
1
]
`
Default
value
:
`'
256
mb
64
mb
60
'`
#####
<
a
name
=
"output_buffer_limit_pubsub"
></
a
>
`
output_buffer_limit_pubsub
`
Data
type
:
`
String
[
1
]
`
Default
value
:
`'
32
mb
8
mb
60
'`
#####
<
a
name
=
"manage_service_file"
></
a
>
`
manage_service_file
`
Data
type
:
`
Boolean
`
Default
value
:
``
false
``
###
<
a
name
=
"redisadministration"
></
a
>
`
redis
::
administration
`
As
documented
in
the
FAQ
and
https
:
//redis.io/topics/admin.
For
disabling
Transparent
Huge
Pages
(
THP
),
use
separate
module
such
as
:
https
:
//forge.puppet.com/modules/alexharvey/disable_transparent_hugepage
Note
that
this
class
requires
the
herculesteam
/
augeasproviders_sysctl
module
.
*
**
See
also
**
*
https
:
//redis.io/topics/admin
*
https
:
//forge.puppet.com/herculesteam/augeasproviders_sysctl
####
Examples
#####
```
puppet
include
redis
::
administration
```
#####
```
puppet
class
{
'
redis
::
administration
'
:
enable_overcommit_memory
=>
false
,
}
```
####
Parameters
The
following
parameters
are
available
in
the
`
redis
::
administration
`
class
:
*
[
`
enable_overcommit_memory
`
](#
enable_overcommit_memory
)
*
[
`
somaxconn
`
](#
somaxconn
)
#####
<
a
name
=
"enable_overcommit_memory"
></
a
>
`
enable_overcommit_memory
`
Data
type
:
`
Boolean
`
Enable
the
overcommit
memory
setting
Default
value
:
``
true
``
#####
<
a
name
=
"somaxconn"
></
a
>
`
somaxconn
`
Data
type
:
`
Integer
[
0
]
`
Set
somaxconn
value
Default
value
:
`
65535
`
###
<
a
name
=
"redisglobals"
></
a
>
`
redis
::
globals
`
Set
a
global
config
for
Redis
####
Parameters
The
following
parameters
are
available
in
the
`
redis
::
globals
`
class
:
*
[
`
scl
`
](#
scl
)
#####
<
a
name
=
"scl"
></
a
>
`
scl
`
Data
type
:
`
Optional
[
String
]
`
Use
a
specific
Software
CoLlection
on
Red
Hat
based
systems
Default
value
:
``
undef
``
###
<
a
name
=
"redissentinel"
></
a
>
`
redis
::
sentinel
`
Install
redis
-
sentinel
####
Examples
#####
Basic
inclusion
```
puppet
include
redis
::
sentinel
```
#####
Configuring
options
```
puppet
class
{
'
redis
::
sentinel
'
:
down_after
=>
80000
,
log_file
=>
'
/
var
/
log
/
redis
/
sentinel
.
log
'
,
}
```
####
Parameters
The
following
parameters
are
available
in
the
`
redis
::
sentinel
`
class
:
*
[
`
auth_pass
`
](#
auth_pass
)
*
[
`
config_file
`
](#
config_file
)
*
[
`
config_file_orig
`
](#
config_file_orig
)
*
[
`
config_file_mode
`
](#
config_file_mode
)
*
[
`
conf_template
`
](#
conf_template
)
*
[
`
daemonize
`
](#
daemonize
)
*
[
`
down_after
`
](#
down_after
)
*
[
`
failover_timeout
`
](#
failover_timeout
)
*
[
`
log_file
`
](#
log_file
)
*
[
`
log_level
`
](#
log_level
)
*
[
`
master_name
`
](#
master_name
)
*
[
`
redis_host
`
](#
redis_host
)
*
[
`
redis_port
`
](#
redis_port
)
*
[
`
requirepass
`
](#
requirepass
)
*
[
`
protected_mode
`
](#
protected_mode
)
*
[
`
package_name
`
](#
package_name
)
*
[
`
package_ensure
`
](#
package_ensure
)
*
[
`
parallel_sync
`
](#
parallel_sync
)
*
[
`
pid_file
`
](#
pid_file
)
*
[
`
quorum
`
](#
quorum
)
*
[
`
sentinel_bind
`
](#
sentinel_bind
)
*
[
`
sentinel_port
`
](#
sentinel_port
)
*
[
`
service_group
`
](#
service_group
)
*
[
`
service_name
`
](#
service_name
)
*
[
`
service_user
`
](#
service_user
)
*
[
`
service_enable
`
](#
service_enable
)
*
[
`
working_dir
`
](#
working_dir
)
*
[
`
notification_script
`
](#
notification_script
)
*
[
`
client_reconfig_script
`
](#
client_reconfig_script
)
*
[
`
service_ensure
`
](#
service_ensure
)
#####
<
a
name
=
"auth_pass"
></
a
>
`
auth_pass
`
Data
type
:
`
Optional
[
String
[
1
]]
`
The
password
to
use
to
authenticate
with
the
master
and
slaves
.
Default
value
:
``
undef
``
#####
<
a
name
=
"config_file"
></
a
>
`
config_file
`
Data
type
:
`
Stdlib
::
Absolutepath
`
The
location
and
name
of
the
sentinel
config
file
.
Default
value
:
`
$
redis
::
params
::
sentinel_config_file
`
#####
<
a
name
=
"config_file_orig"
></
a
>
`
config_file_orig
`
Data
type
:
`
Stdlib
::
Absolutepath
`
The
location
and
name
of
a
config
file
that
provides
the
source
of
the
sentinel
config
file
.
Two
different
files
are
needed
because
sentinel
itself
writes
to
its
own
config
file
and
we
do
not
want
override
that
when
puppet
is
run
unless
there
are
changes
from
the
manifests
.
Default
value
:
`
$
redis
::
params
::
sentinel_config_file_orig
`
#####
<
a
name
=
"config_file_mode"
></
a
>
`
config_file_mode
`
Data
type
:
`
Stdlib
::
Filemode
`
Permissions
of
config
file
.
Default
value
:
`'
0644
'`
#####
<
a
name
=
"conf_template"
></
a
>
`
conf_template
`
Data
type
:
`
String
[
1
]
`
Define
which
template
to
use
.
Default
value
:
`'
redis
/
redis
-
sentinel
.
conf
.
erb
'`
#####
<
a
name
=
"daemonize"
></
a
>
`
daemonize
`
Data
type
:
`
Boolean
`
Have
Redis
sentinel
run
as
a
daemon
.
Default
value
:
`
$
redis
::
params
::
sentinel_daemonize
`
#####
<
a
name
=
"down_after"
></
a
>
`
down_after
`
Data
type
:
`
Integer
[
1
]
`
Number
of
milliseconds
the
master
(
or
any
attached
slave
or
sentinel
)
should
be
unreachable
(
as
in
,
not
acceptable
reply
to
PING
,
continuously
,
for
the
specified
period
)
in
order
to
consider
it
in
S_DOWN
state
.
Default
value
:
`
30000
`
#####
<
a
name
=
"failover_timeout"
></
a
>
`
failover_timeout
`
Data
type
:
`
Integer
[
1
]
`
Specify
the
failover
timeout
in
milliseconds
.
Default
value
:
`
180000
`
#####
<
a
name
=
"log_file"
></
a
>
`
log_file
`
Data
type
:
`
Stdlib
::
Absolutepath
`
Specify
where
to
write
log
entries
.
Default
value
:
`
$
redis
::
params
::
sentinel_log_file
`
#####
<
a
name
=
"log_level"
></
a
>
`
log_level
`
Data
type
:
`
Redis
::
LogLevel
`
Specify
how
much
we
should
log
.
Default
value
:
`'
notice
'`
#####
<
a
name
=
"master_name"
></
a
>
`
master_name
`
Data
type
:
`
String
[
1
]
`
Specify
the
name
of
the
master
redis
server
.
The
valid
charset
is
A
-
z
0
-
9
and
the
three
characters
".-_"
.
Default
value
:
`'
mymaster
'`
#####
<
a
name
=
"redis_host"
></
a
>
`
redis_host
`
Data
type
:
`
Stdlib
::
Host
`
Specify
the
bound
host
of
the
master
redis
server
.
Default
value
:
`'
127.0
.
0.1
'`
#####
<
a
name
=
"redis_port"
></
a
>
`
redis_port
`
Data
type
:
`
Stdlib
::
Port
`
Specify
the
port
of
the
master
redis
server
.
Default
value
:
`
6379
`
#####
<
a
name
=
"requirepass"
></
a
>
`
requirepass
`
Data
type
:
`
Optional
[
String
[
1
]]
`
Specify
the
password
to
require
client
authentication
via
the
AUTH
command
,
however
this
feature
is
only
available
starting
with
Redis
5.0
.
1
.
Default
value
:
``
undef
``
#####
<
a
name
=
"protected_mode"
></
a
>
`
protected_mode
`
Data
type
:
`
Boolean
`
Whether
protected
mode
is
enabled
or
not
.
Only
applicable
when
no
bind
is
set
.
Default
value
:
``
true
``
#####
<
a
name
=
"package_name"
></
a
>
`
package_name
`
Data
type
:
`
String
[
1
]
`
The
name
of
the
package
that
installs
sentinel
.
Default
value
:
`
$
redis
::
params
::
sentinel_package_name
`
#####
<
a
name
=
"package_ensure"
></
a
>
`
package_ensure
`
Data
type
:
`
String
[
1
]
`
Do
we
ensure
this
package
.
Default
value
:
`'
present
'`
#####
<
a
name
=
"parallel_sync"
></
a
>
`
parallel_sync
`
Data
type
:
`
Integer
[
0
]
`
How
many
slaves
can
be
reconfigured
at
the
same
time
to
use
a
new
master
after
a
failover
.
Default
value
:
`
1
`
#####
<
a
name
=
"pid_file"
></
a
>
`
pid_file
`
Data
type
:
`
Stdlib
::
Absolutepath
`
If
sentinel
is
daemonized
it
will
write
its
pid
at
this
location
.
Default
value
:
`
$
redis
::
params
::
sentinel_pid_file
`
#####
<
a
name
=
"quorum"
></
a
>
`
quorum
`
Data
type
:
`
Integer
[
1
]
`
Number
of
sentinels
that
must
agree
that
a
master
is
down
to
signal
sdown
state
.
Default
value
:
`
2
`
#####
<
a
name
=
"sentinel_bind"
></
a
>
`
sentinel_bind
`
Data
type
:
`
Variant
[
Undef
,
Stdlib
::
IP
::
Address
,
Array
[
Stdlib
::
IP
::
Address
]]
`
Allow
optional
sentinel
server
ip
binding
.
Can
help
overcome
issues
arising
from
protect
-
mode
added
Redis
3.2
Default
value
:
``
undef
``
#####
<
a
name
=
"sentinel_port"
></
a
>
`
sentinel_port
`
Data
type
:
`
Stdlib
::
Port
`
The
port
of
sentinel
server
.
Default
value
:
`
26379
`
#####
<
a
name
=
"service_group"
></
a
>
`
service_group
`
Data
type
:
`
String
[
1
]
`
The
group
of
the
config
file
.
Default
value
:
`'
redis
'`
#####
<
a
name
=
"service_name"
></
a
>
`
service_name
`
Data
type
:
`
String
[
1
]
`
The
name
of
the
service
(
for
puppet
to
manage
).
Default
value
:
`
$
redis
::
params
::
sentinel_service_name
`
#####
<
a
name
=
"service_user"
></
a
>
`
service_user
`
Data
type
:
`
String
[
1
]
`
The
owner
of
the
config
file
.
Default
value
:
`'
redis
'`
#####
<
a
name
=
"service_enable"
></
a
>
`
service_enable
`
Data
type
:
`
Boolean
`
Enable
the
service
at
boot
time
.
Default
value
:
``
true
``
#####
<
a
name
=
"working_dir"
></
a
>
`
working_dir
`
Data
type
:
`
Stdlib
::
Absolutepath
`
The
directory
into
which
sentinel
will
change
to
avoid
mount
conflicts
.
Default
value
:
`
$
redis
::
params
::
sentinel_working_dir
`
#####
<
a
name
=
"notification_script"
></
a
>
`
notification_script
`
Data
type
:
`
Optional
[
Stdlib
::
Absolutepath
]
`
Path
to
the
notification
script
Default
value
:
``
undef
``
#####
<
a
name
=
"client_reconfig_script"
></
a
>
`
client_reconfig_script
`
Data
type
:
`
Optional
[
Stdlib
::
Absolutepath
]
`
Path
to
the
client
-
reconfig
script
Default
value
:
``
undef
``
#####
<
a
name
=
"service_ensure"
></
a
>
`
service_ensure
`
Data
type
:
`
Stdlib
::
Ensure
::
Service
`
Default
value
:
`'
running
'`
##
Defined
types
###
<
a
name
=
"redisinstance"
></
a
>
`
redis
::
instance
`
This
is
an
defined
type
to
allow
the
configuration
of
multiple
redis
instances
on
one
machine
without
conflicts
####
Examples
#####
```
puppet
redis
::
instance
{
'
6380
'
:
port
=>
6380
,
}
```
####
Parameters
The
following
parameters
are
available
in
the
`
redis
::
instance
`
defined
type
:
*
[
`
activerehashing
`
](#
activerehashing
)
*
[
`
aof_load_truncated
`
](#
aof_load_truncated
)
*
[
`
aof_rewrite_incremental_fsync
`
](#
aof_rewrite_incremental_fsync
)
*
[
`
appendfilename
`
](#
appendfilename
)
*
[
`
appendfsync
`
](#
appendfsync
)
*
[
`
appendonly
`
](#
appendonly
)
*
[
`
auto_aof_rewrite_min_size
`
](#
auto_aof_rewrite_min_size
)
*
[
`
auto_aof_rewrite_percentage
`
](#
auto_aof_rewrite_percentage
)
*
[
`
bind
`
](#
bind
)
*
[
`
config_file_orig
`
](#
config_file_orig
)
*
[
`
config_file
`
](#
config_file
)
*
[
`
config_file_mode
`
](#
config_file_mode
)
*
[
`
config_group
`
](#
config_group
)
*
[
`
config_owner
`
](#
config_owner
)
*
[
`
conf_template
`
](#
conf_template
)
*
[
`
daemonize
`
](#
daemonize
)
*
[
`
databases
`
](#
databases
)
*
[
`
dbfilename
`
](#
dbfilename
)
*
[
`
extra_config_file
`
](#
extra_config_file
)
*
[
`
hash_max_ziplist_entries
`
](#
hash_max_ziplist_entries
)
*
[
`
hash_max_ziplist_value
`
](#
hash_max_ziplist_value
)
*
[
`
hll_sparse_max_bytes
`
](#
hll_sparse_max_bytes
)
*
[
`
hz
`
](#
hz
)
*
[
`
latency_monitor_threshold
`
](#
latency_monitor_threshold
)
*
[
`
list_max_ziplist_entries
`
](#
list_max_ziplist_entries
)
*
[
`
list_max_ziplist_value
`
](#
list_max_ziplist_value
)
*
[
`
log_dir
`
](#
log_dir
)
*
[
`
log_dir_mode
`
](#
log_dir_mode
)
*
[
`
log_file
`
](#
log_file
)
*
[
`
log_level
`
](#
log_level
)
*
[
`
masterauth
`
](#
masterauth
)
*
[
`
maxclients
`
](#
maxclients
)
*
[
`
maxmemory
`
](#
maxmemory
)
*
[
`
maxmemory_policy
`
](#
maxmemory_policy
)
*
[
`
maxmemory_samples
`
](#
maxmemory_samples
)
*
[
`
min_slaves_max_lag
`
](#
min_slaves_max_lag
)
*
[
`
min_slaves_to_write
`
](#
min_slaves_to_write
)
*
[
`
no_appendfsync_on_rewrite
`
](#
no_appendfsync_on_rewrite
)
*
[
`
notify_keyspace_events
`
](#
notify_keyspace_events
)
*
[
`
pid_file
`
](#
pid_file
)
*
[
`
port
`
](#
port
)
*
[
`
protected_mode
`
](#
protected_mode
)
*
[
`
rdbcompression
`
](#
rdbcompression
)
*
[
`
rename_commands
`
](#
rename_commands
)
*
[
`
repl_backlog_size
`
](#
repl_backlog_size
)
*
[
`
repl_backlog_ttl
`
](#
repl_backlog_ttl
)
*
[
`
repl_disable_tcp_nodelay
`
](#
repl_disable_tcp_nodelay
)
*
[
`
repl_ping_slave_period
`
](#
repl_ping_slave_period
)
*
[
`
repl_timeout
`
](#
repl_timeout
)
*
[
`
requirepass
`
](#
requirepass
)
*
[
`
save_db_to_disk
`
](#
save_db_to_disk
)
*
[
`
save_db_to_disk_interval
`
](#
save_db_to_disk_interval
)
*
[
`
service_name
`
](#
service_name
)
*
[
`
service_enable
`
](#
service_enable
)
*
[
`
service_ensure
`
](#
service_ensure
)
*
[
`
service_group
`
](#
service_group
)
*
[
`
service_user
`
](#
service_user
)
*
[
`
set_max_intset_entries
`
](#
set_max_intset_entries
)
*
[
`
slave_priority
`
](#
slave_priority
)
*
[
`
slave_read_only
`
](#
slave_read_only
)
*
[
`
slave_serve_stale_data
`
](#
slave_serve_stale_data
)
*
[
`
slaveof
`
](#
slaveof
)
*
[
`
slowlog_log_slower_than
`
](#
slowlog_log_slower_than
)
*
[
`
slowlog_max_len
`
](#
slowlog_max_len
)
*
[
`
stop_writes_on_bgsave_error
`
](#
stop_writes_on_bgsave_error
)
*
[
`
syslog_enabled
`
](#
syslog_enabled
)
*
[
`
syslog_facility
`
](#
syslog_facility
)
*
[
`
tcp_backlog
`
](#
tcp_backlog
)
*
[
`
tcp_keepalive
`
](#
tcp_keepalive
)
*
[
`
timeout
`
](#
timeout
)
*
[
`
ulimit
`
](#
ulimit
)
*
[
`
ulimit_managed
`
](#
ulimit_managed
)
*
[
`
unixsocket
`
](#
unixsocket
)
*
[
`
unixsocketperm
`
](#
unixsocketperm
)
*
[
`
workdir
`
](#
workdir
)
*
[
`
workdir_mode
`
](#
workdir_mode
)
*
[
`
zset_max_ziplist_entries
`
](#
zset_max_ziplist_entries
)
*
[
`
zset_max_ziplist_value
`
](#
zset_max_ziplist_value
)
*
[
`
cluster_enabled
`
](#
cluster_enabled
)
*
[
`
cluster_config_file
`
](#
cluster_config_file
)
*
[
`
cluster_node_timeout
`
](#
cluster_node_timeout
)
*
[
`
cluster_slave_validity_factor
`
](#
cluster_slave_validity_factor
)
*
[
`
cluster_require_full_coverage
`
](#
cluster_require_full_coverage
)
*
[
`
cluster_migration_barrier
`
](#
cluster_migration_barrier
)
*
[
`
output_buffer_limit_slave
`
](#
output_buffer_limit_slave
)
*
[
`
output_buffer_limit_pubsub
`
](#
output_buffer_limit_pubsub
)
*
[
`
managed_by_cluster_manager
`
](#
managed_by_cluster_manager
)
*
[
`
manage_service_file
`
](#
manage_service_file
)
#####
<
a
name
=
"activerehashing"
></
a
>
`
activerehashing
`
Data
type
:
`
Boolean
`
Enable
/
disable
active
rehashing
.
Default
value
:
`
$
redis
::
activerehashing
`
#####
<
a
name
=
"aof_load_truncated"
></
a
>
`
aof_load_truncated
`
Data
type
:
`
Boolean
`
Enable
/
disable
loading
truncated
AOF
file
Default
value
:
`
$
redis
::
aof_load_truncated
`
#####
<
a
name
=
"aof_rewrite_incremental_fsync"
></
a
>
`
aof_rewrite_incremental_fsync
`
Data
type
:
`
Boolean
`
Enable
/
disable
fsync
for
AOF
file
Default
value
:
`
$
redis
::
aof_rewrite_incremental_fsync
`
#####
<
a
name
=
"appendfilename"
></
a
>
`
appendfilename
`
Data
type
:
`
String
[
1
]
`
The
name
of
the
append
only
file
Default
value
:
`
$
redis
::
appendfilename
`
#####
<
a
name
=
"appendfsync"
></
a
>
`
appendfsync
`
Data
type
:
`
Enum
[
'
no
'
,
'
always
'
,
'
everysec
'
]
`
Adjust
fsync
mode
.
Valid
options
:
always
,
everysec
,
no
.
Default
value
:
`
$
redis
::
appendfsync
`
#####
<
a
name
=
"appendonly"
></
a
>
`
appendonly
`
Data
type
:
`
Boolean
`
Enable
/
disable
appendonly
mode
.
Default
value
:
`
$
redis
::
appendonly
`
#####
<
a
name
=
"auto_aof_rewrite_min_size"
></
a
>
`
auto_aof_rewrite_min_size
`
Data
type
:
`
String
[
1
]
`
Adjust
minimum
size
for
auto
-
aof
-
rewrite
.
Default
value
:
`
$
redis
::
auto_aof_rewrite_min_size
`
#####
<
a
name
=
"auto_aof_rewrite_percentage"
></
a
>
`
auto_aof_rewrite_percentage
`
Data
type
:
`
Integer
[
0
]
`
Adjust
percentatge
for
auto
-
aof
-
rewrite
.
Default
value
:
`
$
redis
::
auto_aof_rewrite_percentage
`
#####
<
a
name
=
"bind"
></
a
>
`
bind
`
Data
type
:
`
Variant
[
Stdlib
::
IP
::
Address
,
Array
[
Stdlib
::
IP
::
Address
]]
`
Configure
which
IP
address
(
es
)
to
listen
on
.
To
bind
on
all
interfaces
,
use
an
empty
array
.
Default
value
:
`
$
redis
::
bind
`
#####
<
a
name
=
"config_file_orig"
></
a
>
`
config_file_orig
`
Data
type
:
`
Stdlib
::
Absolutepath
`
The
location
and
name
of
a
config
file
that
provides
the
source
Default
value
:
`
$
redis
::
config_file_orig
`
#####
<
a
name
=
"config_file"
></
a
>
`
config_file
`
Data
type
:
`
Stdlib
::
Absolutepath
`
Adjust
main
configuration
file
.
Default
value
:
`
$
redis
::
config_file
`
#####
<
a
name
=
"config_file_mode"
></
a
>
`
config_file_mode
`
Data
type
:
`
Stdlib
::
Filemode
`
Adjust
permissions
for
configuration
files
.
Default
value
:
`
$
redis
::
config_file_mode
`
#####
<
a
name
=
"config_group"
></
a
>
`
config_group
`
Data
type
:
`
String
[
1
]
`
Adjust
filesystem
group
for
config
files
.
Default
value
:
`
$
redis
::
config_group
`
#####
<
a
name
=
"config_owner"
></
a
>
`
config_owner
`
Data
type
:
`
String
[
1
]
`
Adjust
filesystem
owner
for
config
files
.
Default
value
:
`
$
redis
::
config_owner
`
#####
<
a
name
=
"conf_template"
></
a
>
`
conf_template
`
Data
type
:
`
String
[
1
]
`
Define
which
template
to
use
.
Default
value
:
`
$
redis
::
conf_template
`
#####
<
a
name
=
"daemonize"
></
a
>
`
daemonize
`
Data
type
:
`
Boolean
`
Have
Redis
run
as
a
daemon
.
Default
value
:
``
true
``
#####
<
a
name
=
"databases"
></
a
>
`
databases
`
Data
type
:
`
Integer
[
1
]
`
Set
the
number
of
databases
.
Default
value
:
`
$
redis
::
databases
`
#####
<
a
name
=
"dbfilename"
></
a
>
`
dbfilename
`
Data
type
:
`
Variant
[
String
[
1
],
Boolean
]
`
The
filename
where
to
dump
the
DB
Default
value
:
`
$
redis
::
dbfilename
`
#####
<
a
name
=
"extra_config_file"
></
a
>
`
extra_config_file
`
Data
type
:
`
Optional
[
String
]
`
Optional
extra
config
file
to
include
Default
value
:
`
$
redis
::
extra_config_file
`
#####
<
a
name
=
"hash_max_ziplist_entries"
></
a
>
`
hash_max_ziplist_entries
`
Data
type
:
`
Integer
[
0
]
`
Set
max
ziplist
entries
for
hashes
.
Default
value
:
`
$
redis
::
hash_max_ziplist_entries
`
#####
<
a
name
=
"hash_max_ziplist_value"
></
a
>
`
hash_max_ziplist_value
`
Data
type
:
`
Integer
[
0
]
`
Set
max
ziplist
values
for
hashes
.
Default
value
:
`
$
redis
::
hash_max_ziplist_value
`
#####
<
a
name
=
"hll_sparse_max_bytes"
></
a
>
`
hll_sparse_max_bytes
`
Data
type
:
`
Integer
[
0
]
`
HyperLogLog
sparse
representation
bytes
limit
Default
value
:
`
$
redis
::
hll_sparse_max_bytes
`
#####
<
a
name
=
"hz"
></
a
>
`
hz
`
Data
type
:
`
Integer
[
1
,
500
]
`
Set
redis
background
tasks
frequency
Default
value
:
`
$
redis
::
hz
`
#####
<
a
name
=
"latency_monitor_threshold"
></
a
>
`
latency_monitor_threshold
`
Data
type
:
`
Integer
[
0
]
`
Latency
monitoring
threshold
in
milliseconds
Default
value
:
`
$
redis
::
latency_monitor_threshold
`
#####
<
a
name
=
"list_max_ziplist_entries"
></
a
>
`
list_max_ziplist_entries
`
Data
type
:
`
Integer
[
0
]
`
Set
max
ziplist
entries
for
lists
.
Default
value
:
`
$
redis
::
list_max_ziplist_entries
`
#####
<
a
name
=
"list_max_ziplist_value"
></
a
>
`
list_max_ziplist_value
`
Data
type
:
`
Integer
[
0
]
`
Set
max
ziplist
values
for
lists
.
Default
value
:
`
$
redis
::
list_max_ziplist_value
`
#####
<
a
name
=
"log_dir"
></
a
>
`
log_dir
`
Data
type
:
`
Stdlib
::
Absolutepath
`
Specify
directory
where
to
write
log
entries
.
Default
value
:
`
$
redis
::
log_dir
`
#####
<
a
name
=
"log_dir_mode"
></
a
>
`
log_dir_mode
`
Data
type
:
`
Stdlib
::
Filemode
`
Adjust
mode
for
directory
containing
log
files
.
Default
value
:
`
$
redis
::
log_dir_mode
`
#####
<
a
name
=
"log_file"
></
a
>
`
log_file
`
Data
type
:
`
String
`
Specify
file
where
to
write
log
entries
.
Relative
paths
will
be
prepended
with
log_dir
but
absolute
paths
are
also
accepted
.
Default
value
:
`
"redis-server-${name}.log"
`
#####
<
a
name
=
"log_level"
></
a
>
`
log_level
`
Data
type
:
`
Redis
::
LogLevel
`
Specify
the
server
verbosity
level
.
Default
value
:
`
$
redis
::
log_level
`
#####
<
a
name
=
"masterauth"
></
a
>
`
masterauth
`
Data
type
:
`
Optional
[
String
[
1
]]
`
If
the
master
is
password
protected
(
using
the
"requirepass"
configuration
Default
value
:
`
$
redis
::
masterauth
`
#####
<
a
name
=
"maxclients"
></
a
>
`
maxclients
`
Data
type
:
`
Integer
[
1
]
`
Set
the
max
number
of
connected
clients
at
the
same
time
.
Default
value
:
`
$
redis
::
maxclients
`
#####
<
a
name
=
"maxmemory"
></
a
>
`
maxmemory
`
Data
type
:
`
Any
`
Don
'
t
use
more
memory
than
the
specified
amount
of
bytes
.
Default
value
:
`
$
redis
::
maxmemory
`
#####
<
a
name
=
"maxmemory_policy"
></
a
>
`
maxmemory_policy
`
Data
type
:
`
Any
`
How
Redis
will
select
what
to
remove
when
maxmemory
is
reached
.
Default
value
:
`
$
redis
::
maxmemory_policy
`
#####
<
a
name
=
"maxmemory_samples"
></
a
>
`
maxmemory_samples
`
Data
type
:
`
Any
`
Select
as
well
the
sample
size
to
check
.
Default
value
:
`
$
redis
::
maxmemory_samples
`
#####
<
a
name
=
"min_slaves_max_lag"
></
a
>
`
min_slaves_max_lag
`
Data
type
:
`
Integer
[
0
]
`
The
lag
in
seconds
Default
value
:
`
$
redis
::
min_slaves_max_lag
`
#####
<
a
name
=
"min_slaves_to_write"
></
a
>
`
min_slaves_to_write
`
Data
type
:
`
Integer
[
0
]
`
Minimum
number
of
slaves
to
be
in
"online"
state
Default
value
:
`
$
redis
::
min_slaves_to_write
`
#####
<
a
name
=
"no_appendfsync_on_rewrite"
></
a
>
`
no_appendfsync_on_rewrite
`
Data
type
:
`
Boolean
`
If
you
have
latency
problems
turn
this
to
'
true
'
.
Otherwise
leave
it
as
Default
value
:
`
$
redis
::
no_appendfsync_on_rewrite
`
#####
<
a
name
=
"notify_keyspace_events"
></
a
>
`
notify_keyspace_events
`
Data
type
:
`
Optional
[
String
[
1
]]
`
Which
events
to
notify
Pub
/
Sub
clients
about
events
happening
Default
value
:
`
$
redis
::
notify_keyspace_events
`
#####
<
a
name
=
"pid_file"
></
a
>
`
pid_file
`
Data
type
:
`
Stdlib
::
Absolutepath
`
Where
to
store
the
pid
.
Default
value
:
`
"/var/run/redis/redis-server-${name}.pid"
`
#####
<
a
name
=
"port"
></
a
>
`
port
`
Data
type
:
`
Stdlib
::
Port
`
Configure
which
port
to
listen
on
.
Default
value
:
`
$
redis
::
port
`
#####
<
a
name
=
"protected_mode"
></
a
>
`
protected_mode
`
Data
type
:
`
Boolean
`
Whether
protected
mode
is
enabled
or
not
.
Only
applicable
when
no
bind
is
set
.
Default
value
:
`
$
redis
::
protected_mode
`
#####
<
a
name
=
"rdbcompression"
></
a
>
`
rdbcompression
`
Data
type
:
`
Boolean
`
Enable
/
disable
compression
of
string
objects
using
LZF
when
dumping
.
Default
value
:
`
$
redis
::
rdbcompression
`
#####
<
a
name
=
"rename_commands"
></
a
>
`
rename_commands
`
Data
type
:
`
Hash
[
String
,
String
]
`
A
list
of
Redis
commands
to
rename
or
disable
for
security
reasons
Default
value
:
`
$
redis
::
rename_commands
`
#####
<
a
name
=
"repl_backlog_size"
></
a
>
`
repl_backlog_size
`
Data
type
:
`
String
[
1
]
`
The
replication
backlog
size
Default
value
:
`
$
redis
::
repl_backlog_size
`
#####
<
a
name
=
"repl_backlog_ttl"
></
a
>
`
repl_backlog_ttl
`
Data
type
:
`
Integer
[
0
]
`
The
number
of
seconds
to
elapse
before
freeing
backlog
buffer
Default
value
:
`
$
redis
::
repl_backlog_ttl
`
#####
<
a
name
=
"repl_disable_tcp_nodelay"
></
a
>
`
repl_disable_tcp_nodelay
`
Data
type
:
`
Boolean
`
Enable
/
disable
TCP_NODELAY
on
the
slave
socket
after
SYNC
Default
value
:
`
$
redis
::
repl_disable_tcp_nodelay
`
#####
<
a
name
=
"repl_ping_slave_period"
></
a
>
`
repl_ping_slave_period
`
Data
type
:
`
Integer
[
1
]
`
Slaves
send
PINGs
to
server
in
a
predefined
interval
.
It
'
s
possible
Default
value
:
`
$
redis
::
repl_ping_slave_period
`
#####
<
a
name
=
"repl_timeout"
></
a
>
`
repl_timeout
`
Data
type
:
`
Integer
[
1
]
`
Set
the
replication
timeout
for
:
Default
value
:
`
$
redis
::
repl_timeout
`
#####
<
a
name
=
"requirepass"
></
a
>
`
requirepass
`
Data
type
:
`
Optional
[
String
]
`
Require
clients
to
issue
AUTH
<
PASSWORD
>
before
processing
any
other
commands
.
Default
value
:
`
$
redis
::
requirepass
`
#####
<
a
name
=
"save_db_to_disk"
></
a
>
`
save_db_to_disk
`
Data
type
:
`
Boolean
`
Set
if
save
db
to
disk
.
Default
value
:
`
$
redis
::
save_db_to_disk
`
#####
<
a
name
=
"save_db_to_disk_interval"
></
a
>
`
save_db_to_disk_interval
`
Data
type
:
`
Hash
`
save
the
dataset
every
N
seconds
if
there
are
at
least
M
changes
in
the
dataset
Default
value
:
`
$
redis
::
save_db_to_disk_interval
`
#####
<
a
name
=
"service_name"
></
a
>
`
service_name
`
Data
type
:
`
String
[
1
]
`
The
service
name
for
this
instance
Default
value
:
`
"redis-server-${name}"
`
#####
<
a
name
=
"service_enable"
></
a
>
`
service_enable
`
Data
type
:
`
Boolean
`
Enable
/
disable
daemon
at
boot
.
Default
value
:
`
$
redis
::
service_enable
`
#####
<
a
name
=
"service_ensure"
></
a
>
`
service_ensure
`
Data
type
:
`
Stdlib
::
Ensure
::
Service
`
Specify
if
the
server
should
be
running
.
Default
value
:
`
$
redis
::
service_ensure
`
#####
<
a
name
=
"service_group"
></
a
>
`
service_group
`
Data
type
:
`
String
[
1
]
`
Specify
which
group
to
run
as
.
Default
value
:
`
$
redis
::
service_group
`
#####
<
a
name
=
"service_user"
></
a
>
`
service_user
`
Data
type
:
`
String
[
1
]
`
Specify
which
user
to
run
as
.
Default
value
:
`
$
redis
::
service_user
`
#####
<
a
name
=
"set_max_intset_entries"
></
a
>
`
set_max_intset_entries
`
Data
type
:
`
Integer
[
0
]
`
The
following
configuration
setting
sets
the
limit
in
the
size
of
the
set
in
order
to
use
this
special
memory
saving
encoding
.
Default
value
:
`
$
redis
::
set_max_intset_entries
`
#####
<
a
name
=
"slave_priority"
></
a
>
`
slave_priority
`
Data
type
:
`
Integer
[
0
]
`
The
priority
number
for
slave
promotion
by
Sentinel
Default
value
:
`
$
redis
::
slave_priority
`
#####
<
a
name
=
"slave_read_only"
></
a
>
`
slave_read_only
`
Data
type
:
`
Boolean
`
You
can
configure
a
slave
instance
to
accept
writes
or
not
.
Default
value
:
`
$
redis
::
slave_read_only
`
#####
<
a
name
=
"slave_serve_stale_data"
></
a
>
`
slave_serve_stale_data
`
Data
type
:
`
Boolean
`
When
a
slave
loses
its
connection
with
the
master
,
or
when
the
replication
is
still
in
progress
,
the
slave
can
act
in
two
different
ways
:
1
)
if
slave
-
serve
-
stale
-
data
is
set
to
'
yes
'
(
the
default
)
the
slave
will
still
reply
to
client
requests
,
possibly
with
out
of
date
data
,
or
the
data
set
may
just
be
empty
if
this
is
the
first
synchronization
.
2
)
if
slave
-
serve
-
stale
-
data
is
set
to
'
no
'
the
slave
will
reply
with
an
error
"SYNC with master in progress"
to
all
the
kind
of
commands
but
to
INFO
and
SLAVEOF
.
Default
value
:
`
$
redis
::
slave_serve_stale_data
`
#####
<
a
name
=
"slaveof"
></
a
>
`
slaveof
`
Data
type
:
`
Optional
[
String
[
1
]]
`
Use
slaveof
to
make
a
Redis
instance
a
copy
of
another
Redis
server
.
Default
value
:
`
$
redis
::
slaveof
`
#####
<
a
name
=
"slowlog_log_slower_than"
></
a
>
`
slowlog_log_slower_than
`
Data
type
:
`
Integer
[
0
]
`
Tells
Redis
what
is
the
execution
time
,
in
microseconds
,
to
exceed
in
order
for
the
command
to
get
logged
.
Default
value
:
`
$
redis
::
slowlog_log_slower_than
`
#####
<
a
name
=
"slowlog_max_len"
></
a
>
`
slowlog_max_len
`
Data
type
:
`
Integer
[
0
]
`
Tells
Redis
what
is
the
length
to
exceed
in
order
for
the
command
to
get
logged
.
Default
value
:
`
$
redis
::
slowlog_max_len
`
#####
<
a
name
=
"stop_writes_on_bgsave_error"
></
a
>
`
stop_writes_on_bgsave_error
`
Data
type
:
`
Boolean
`
If
false
then
Redis
will
continue
to
work
as
usual
even
if
there
are
problems
with
disk
,
permissions
,
and
so
forth
.
Default
value
:
`
$
redis
::
stop_writes_on_bgsave_error
`
#####
<
a
name
=
"syslog_enabled"
></
a
>
`
syslog_enabled
`
Data
type
:
`
Boolean
`
Enable
/
disable
logging
to
the
system
logger
.
Default
value
:
`
$
redis
::
syslog_enabled
`
#####
<
a
name
=
"syslog_facility"
></
a
>
`
syslog_facility
`
Data
type
:
`
Optional
[
String
[
1
]]
`
Specify
the
syslog
facility
.
Must
be
USER
or
between
LOCAL0
-
LOCAL7
.
Default
value
:
`
$
redis
::
syslog_facility
`
#####
<
a
name
=
"tcp_backlog"
></
a
>
`
tcp_backlog
`
Data
type
:
`
Integer
[
0
]
`
Sets
the
TCP
backlog
Default
value
:
`
$
redis
::
tcp_backlog
`
#####
<
a
name
=
"tcp_keepalive"
></
a
>
`
tcp_keepalive
`
Data
type
:
`
Integer
[
0
]
`
TCP
keepalive
.
Default
value
:
`
$
redis
::
tcp_keepalive
`
#####
<
a
name
=
"timeout"
></
a
>
`
timeout
`
Data
type
:
`
Integer
[
0
]
`
Close
the
connection
after
a
client
is
idle
for
N
seconds
(
0
to
disable
).
Default
value
:
`
$
redis
::
timeout
`
#####
<
a
name
=
"ulimit"
></
a
>
`
ulimit
`
Data
type
:
`
Integer
[
0
]
`
Limit
the
use
of
system
-
wide
resources
.
Default
value
:
`
$
redis
::
ulimit
`
#####
<
a
name
=
"ulimit_managed"
></
a
>
`
ulimit_managed
`
Data
type
:
`
Boolean
`
Defines
wheter
the
max
number
of
open
files
for
the
systemd
service
unit
is
explicitly
managed
.
Default
value
:
`
$
redis
::
ulimit_managed
`
#####
<
a
name
=
"unixsocket"
></
a
>
`
unixsocket
`
Data
type
:
`
Variant
[
Stdlib
::
Absolutepath
,
Enum
[
''
]]
`
Define
unix
socket
path
Default
value
:
`
"/var/run/redis/redis-server-${name}.sock"
`
#####
<
a
name
=
"unixsocketperm"
></
a
>
`
unixsocketperm
`
Data
type
:
`
Variant
[
Stdlib
::
Filemode
,
Enum
[
''
]]
`
Define
unix
socket
file
permissions
Default
value
:
`
$
redis
::
unixsocketperm
`
#####
<
a
name
=
"workdir"
></
a
>
`
workdir
`
Data
type
:
`
Stdlib
::
Absolutepath
`
The
DB
will
be
written
inside
this
directory
,
with
the
filename
specified
above
using
the
'
dbfilename
'
configuration
directive
.
Default
value
:
`
"${redis::workdir}/redis-server-${name}"
`
#####
<
a
name
=
"workdir_mode"
></
a
>
`
workdir_mode
`
Data
type
:
`
Stdlib
::
Filemode
`
Adjust
mode
for
data
directory
.
Default
value
:
`
$
redis
::
workdir_mode
`
#####
<
a
name
=
"zset_max_ziplist_entries"
></
a
>
`
zset_max_ziplist_entries
`
Data
type
:
`
Integer
[
0
]
`
Set
max
entries
for
sorted
sets
.
Default
value
:
`
$
redis
::
zset_max_ziplist_entries
`
#####
<
a
name
=
"zset_max_ziplist_value"
></
a
>
`
zset_max_ziplist_value
`
Data
type
:
`
Integer
[
0
]
`
Set
max
values
for
sorted
sets
.
Default
value
:
`
$
redis
::
zset_max_ziplist_value
`
#####
<
a
name
=
"cluster_enabled"
></
a
>
`
cluster_enabled
`
Data
type
:
`
Boolean
`
Enables
redis
3.0
cluster
functionality
Default
value
:
`
$
redis
::
cluster_enabled
`
#####
<
a
name
=
"cluster_config_file"
></
a
>
`
cluster_config_file
`
Data
type
:
`
String
[
1
]
`
Config
file
for
saving
cluster
nodes
configuration
.
This
file
is
never
touched
by
humans
.
Only
set
if
cluster_enabled
is
true
Default
value
:
`
$
redis
::
cluster_config_file
`
#####
<
a
name
=
"cluster_node_timeout"
></
a
>
`
cluster_node_timeout
`
Data
type
:
`
Integer
[
1
]
`
Node
timeout
.
Only
set
if
cluster_enabled
is
true
Default
value
:
`
$
redis
::
cluster_node_timeout
`
#####
<
a
name
=
"cluster_slave_validity_factor"
></
a
>
`
cluster_slave_validity_factor
`
Data
type
:
`
Integer
[
0
]
`
Control
variable
to
disable
promoting
slave
in
case
of
disconnection
from
master
Only
set
if
cluster_enabled
is
true
Default
value
:
`
$
redis
::
cluster_slave_validity_factor
`
#####
<
a
name
=
"cluster_require_full_coverage"
></
a
>
`
cluster_require_full_coverage
`
Data
type
:
`
Boolean
`
If
false
Redis
Cluster
will
server
queries
even
if
requests
about
a
subset
of
keys
can
be
processed
Only
set
if
cluster_enabled
is
true
Default
value
:
`
$
redis
::
cluster_require_full_coverage
`
#####
<
a
name
=
"cluster_migration_barrier"
></
a
>
`
cluster_migration_barrier
`
Data
type
:
`
Integer
[
0
]
`
Minimum
number
of
slaves
master
will
remain
connected
with
,
for
another
slave
to
migrate
to
a
master
which
is
no
longer
covered
by
any
slave
Only
set
if
cluster_enabled
is
true
Default
value
:
`
$
redis
::
cluster_migration_barrier
`
#####
<
a
name
=
"output_buffer_limit_slave"
></
a
>
`
output_buffer_limit_slave
`
Data
type
:
`
String
[
1
]
`
Default
value
:
`
$
redis
::
output_buffer_limit_slave
`
#####
<
a
name
=
"output_buffer_limit_pubsub"
></
a
>
`
output_buffer_limit_pubsub
`
Data
type
:
`
String
[
1
]
`
Default
value
:
`
$
redis
::
output_buffer_limit_pubsub
`
#####
<
a
name
=
"managed_by_cluster_manager"
></
a
>
`
managed_by_cluster_manager
`
Data
type
:
`
Boolean
`
Default
value
:
`
$
redis
::
managed_by_cluster_manager
`
#####
<
a
name
=
"manage_service_file"
></
a
>
`
manage_service_file
`
Data
type
:
`
Boolean
`
Default
value
:
``
true
``
##
Functions
###
<
a
name
=
"redisget"
></
a
>
`
redis
::
get
`
Type
:
Ruby
4
.
x
API
```
####
`
redis
::
get
(
String
[
1
]
$
key
,
Redis
::
RedisUrl
$
url
,
Optional
[
String
]
$
default
)
`
```
Returns
:
`
Optional
[
String
]
`
Returns
the
value
of
the
key
from
Redis
#####
`
key
`
Data
type
:
`
String
[
1
]
`
The
key
to
look
up
in
redis
#####
`
url
`
Data
type
:
`
Redis
::
RedisUrl
`
The
endpoint
of
the
Redis
instance
#####
`
default
`
Data
type
:
`
Optional
[
String
]
`
The
value
to
return
if
the
key
is
not
found
or
the
connection
to
Redis
fails
##
Data
types
###
<
a
name
=
"redisloglevel"
></
a
>
`
Redis
::
LogLevel
`
This
can
be
one
of
:
*
debug
(
a
lot
of
information
,
useful
for
development
/
testing
)
*
verbose
(
many
rarely
useful
info
,
but
not
a
mess
like
the
debug
level
)
*
notice
(
moderately
verbose
,
what
you
want
in
production
probably
)
*
warning
(
only
very
important
/
critical
messages
are
logged
)
Alias
of
```
puppet
Enum
[
'
debug
'
,
'
verbose
'
,
'
notice
'
,
'
warning
'
]
```
###
<
a
name
=
"redisredisurl"
></
a
>
`
Redis
::
RedisUrl
`
The
Redis
::
RedisUrl
data
type
.
Alias
of
```
puppet
Pattern
[/(^
redis
:\/\/)/]
```
##
Tasks
###
<
a
name
=
"redis_cli"
></
a
>
`
redis_cli
`
Executes
a
redis
-
cli
command
on
the
target
system
**
Supports
noop
?**
false
####
Parameters
#####
`
command
`
Data
type
:
`
String
[
1
]
`
The
command
to
run
,
including
all
arguments
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 6:59 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3376888
Attached To
R226 puppet-puppet-redis
Event Timeline
Log In to Comment