Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >= 7.0.0 < 9.0.0
- , , , , ,
Tasks:
- redis_cli
Start using this module
Add this module to your Puppetfile:
mod 'puppet-redis', '11.0.0'
Learn more about managing modules with a PuppetfileDocumentation
Puppet Redis
Example usage
Standalone
include redis
Master node
class { 'redis':
bind => '10.0.1.1',
}
With authentication
class { 'redis':
bind => '10.0.1.1',
masterauth => 'secret',
}
Slave node
class { 'redis':
bind => '10.0.1.2',
slaveof => '10.0.1.1 6379',
}
With authentication
class { 'redis':
bind => '10.0.1.2',
slaveof => '10.0.1.1 6379',
masterauth => 'secret',
}
Redis 3.0 Clustering
class { 'redis':
bind => '10.0.1.2',
appendonly => true,
cluster_enabled => true,
cluster_config_file => 'nodes.conf',
cluster_node_timeout => 5000,
}
Multiple instances
$listening_ports = [6379,6380,6381,6382]
class { 'redis':
default_install => false,
service_enable => false,
service_ensure => 'stopped',
}
$listening_ports.each |$port| {
$port_string = sprintf('%d',$port)
redis::instance { $port_string:
service_enable => true,
service_ensure => 'running',
port => $port,
bind => $facts['networking']['ip'],
dbfilename => "${port}-dump.rdb",
appendfilename => "${port}-appendonly.aof",
appendfsync => 'always',
require => Class['Redis'],
}
}
Manage repositories
Disabled by default but if you really want the module to manage the required repositories you can use this snippet:
class { 'redis':
manage_repo => true,
}
On Ubuntu, you can use a PPA by using the ppa_repo
parameter:
class { 'redis':
manage_repo => true,
ppa_repo => 'ppa:rwky/redis',
}
Warning note that PPA usage requires puppetlabs/apt on Ubuntu distros
Redis Sentinel
Optionally install and configuration a redis-sentinel server.
With default settings:
include redis::sentinel
With adjustments:
class { 'redis::sentinel':
master_name => 'cow',
redis_host => '192.168.1.5',
failover_timeout => 30000,
}
Soft dependency
When managing the repo, it needs puppetlabs/apt.
For administration of sysctl it depends on herculesteam/augeasproviders_sysctl.
redis::get()
function
This function is used to get data from redis. You must have the 'redis' gem installed on your puppet master.
Functions are documented in REFERENCE.md
Reference
Table of Contents
Classes
Public Classes
redis
: This class installs redisredis::administration
: Allows various administrative settings for Redisredis::sentinel
: Install redis-sentinel
Private Classes
redis::config
: This class provides configuration for Redis.redis::dnfmodule
: Manage the DNF moduleredis::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
: Allows the configuration of multiple redis configurations on one machine
Functions
redis::get
: Returns the value of the key being looked up orundef
if the key does not exist.
Data types
Redis::LogLevel
: Specify the server verbosity level.Redis::MemoryPolicy
: Specify the server maxmemory_policy.Redis::RedisUrl
: validate URL matches redis protocol
Tasks
redis_cli
: Executes a redis-cli command on the target system
Classes
redis
This class installs redis
Examples
Default install
include redis
Slave Node
class { 'redis':
bind => '10.0.1.2',
slaveof => '10.0.1.1 6379',
}
Binding on multiple interfaces
class { 'redis':
bind => ['127.0.0.1', '10.0.0.1', '10.1.0.1'],
}
Binding on all interfaces
class { 'redis':
bind => [],
}
Parameters
The following parameters are available in the redis
class:
activerehashing
aof_load_truncated
aof_rewrite_incremental_fsync
appendfilename
appendfsync
appendonly
auto_aof_rewrite_min_size
auto_aof_rewrite_percentage
bind
bin_path
config_dir
config_dir_mode
config_file_orig
config_file
config_file_mode
config_group
config_owner
conf_template
daemonize
default_install
databases
dbfilename
extra_config_file
hash_max_ziplist_entries
hash_max_ziplist_value
hll_sparse_max_bytes
hz
latency_monitor_threshold
list_max_ziplist_entries
list_max_ziplist_value
log_dir
log_dir_mode
log_file
log_level
manage_repo
manage_package
managed_by_cluster_manager
masterauth
maxclients
maxmemory
maxmemory_policy
maxmemory_samples
min_slaves_max_lag
min_slaves_to_write
modules
no_appendfsync_on_rewrite
notify_keyspace_events
notify_service
output_buffer_limit_slave
output_buffer_limit_pubsub
package_ensure
package_name
pid_file
port
protected_mode
ppa_repo
redis_apt_repo
apt_location
apt_repos
apt_release
apt_key_id
apt_key_server
apt_key_options
rdbcompression
rename_commands
repl_announce_ip
repl_announce_port
repl_backlog_size
repl_backlog_ttl
repl_disable_tcp_nodelay
repl_ping_slave_period
repl_timeout
requirepass
save_db_to_disk
save_db_to_disk_interval
service_manage
service_enable
service_ensure
service_group
service_name
service_user
service_timeout_start
service_timeout_stop
set_max_intset_entries
slave_priority
slave_read_only
slave_serve_stale_data
slaveof
replicaof
slowlog_log_slower_than
slowlog_max_len
stop_writes_on_bgsave_error
syslog_enabled
syslog_facility
tcp_backlog
tcp_keepalive
timeout
tls_port
tls_cert_file
tls_key_file
tls_ca_cert_file
tls_ca_cert_dir
tls_auth_clients
tls_replication
tls_cluster
tls_ciphers
tls_ciphersuites
tls_protocols
tls_prefer_server_ciphers
ulimit
ulimit_managed
unixsocket
unixsocketperm
workdir
workdir_mode
workdir_group
workdir_owner
debdefault_group
debdefault_file_mode
debdefault_owner
zset_max_ziplist_entries
zset_max_ziplist_value
cluster_enabled
cluster_config_file
cluster_node_timeout
cluster_slave_validity_factor
cluster_require_full_coverage
cluster_migration_barrier
instances
io_threads
io_threads_do_reads
cluster_allow_reads_when_down
cluster_replica_no_failover
dynamic_hz
activedefrag
active_defrag_ignore_bytes
active_defrag_threshold_lower
active_defrag_threshold_upper
active_defrag_cycle_min
active_defrag_cycle_max
active_defrag_max_scan_fields
jemalloc_bg_thread
rdb_save_incremental_fsync
dnf_module_stream
acls
manage_service_file
activerehashing
Data type: Boolean
Enable/disable active rehashing.
Default value: true
aof_load_truncated
Data type: Boolean
Enable/disable loading truncated AOF file
Default value: true
aof_rewrite_incremental_fsync
Data type: Boolean
Enable/disable fsync for AOF file
Default value: true
appendfilename
Data type: String[1]
The name of the append only file
Default value: 'appendonly.aof'
appendfsync
Data type: Enum['no', 'always', 'everysec']
Adjust fsync mode
Default value: 'everysec'
appendonly
Data type: Boolean
Enable/disable appendonly mode.
Default value: false
auto_aof_rewrite_min_size
Data type: String[1]
Adjust minimum size for auto-aof-rewrite.
Default value: '64mb'
auto_aof_rewrite_percentage
Data type: Integer[0]
Adjust percentatge for auto-aof-rewrite.
Default value: 100
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']
bin_path
Data type: Stdlib::Absolutepath
Directory containing redis binary executables.
Default value: $redis::params::bin_path
config_dir
Data type: Stdlib::Absolutepath
Directory containing the configuration files.
Default value: $redis::params::config_dir
config_dir_mode
Data type: Stdlib::Filemode
Adjust mode for directory containing configuration files.
Default value: $redis::params::config_dir_mode
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
config_file
Data type: Stdlib::Absolutepath
Adjust main configuration file.
Default value: $redis::params::config_file
config_file_mode
Data type: Stdlib::Filemode
Adjust permissions for configuration files.
Default value: '0640'
config_group
Data type: String[1]
Adjust filesystem group for config files.
Default value: $redis::params::config_group
config_owner
Data type: String[1]
Adjust filesystem owner for config files.
Default value: $redis::params::config_owner
conf_template
Data type: String[1]
Define which template to use.
Default value: 'redis/redis.conf.epp'
daemonize
Data type: Boolean
Have Redis run as a daemon.
Default value: $redis::params::daemonize
default_install
Data type: Boolean
Configure a default install of redis.
Default value: true
databases
Data type: Integer[1]
Set the number of databases.
Default value: 16
dbfilename
Data type: Variant[String[1], Boolean]
The filename where to dump the DB
Default value: 'dump.rdb'
extra_config_file
Data type: Optional[String]
Optional extra config file to include
Default value: undef
hash_max_ziplist_entries
Data type: Integer[0]
Set max ziplist entries for hashes.
Default value: 512
hash_max_ziplist_value
Data type: Integer[0]
Set max ziplist values for hashes.
Default value: 64
hll_sparse_max_bytes
Data type: Integer[0]
HyperLogLog sparse representation bytes limit
Default value: 3000
hz
Data type: Integer[1, 500]
Set redis background tasks frequency
Default value: 10
latency_monitor_threshold
Data type: Integer[0]
Latency monitoring threshold in milliseconds
Default value: 0
list_max_ziplist_entries
Data type: Integer[0]
Set max ziplist entries for lists.
Default value: 512
list_max_ziplist_value
Data type: Integer[0]
Set max ziplist values for lists.
Default value: 64
log_dir
Data type: Stdlib::Absolutepath
Specify directory where to write log entries.
Default value: $redis::params::log_dir
log_dir_mode
Data type: Stdlib::Filemode
Adjust mode for directory containing log files.
Default value: $redis::params::log_dir_mode
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'
log_level
Data type: Redis::LogLevel
Specify the server verbosity level.
Default value: 'notice'
manage_repo
Data type: Boolean
Enable/disable upstream repository configuration.
Default value: false
manage_package
Data type: Boolean
Enable/disable management of package
Default value: true
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
masterauth
Data type: Optional[Variant[String[1], Sensitive[String[1]], Deferred]]
If the master is password protected (using the "requirepass" configuration
Default value: undef
maxclients
Data type: Integer[1]
Set the max number of connected clients at the same time.
Default value: 10000
maxmemory
Data type: Any
Don't use more memory than the specified amount of bytes.
Default value: undef
maxmemory_policy
Data type: Optional[Redis::MemoryPolicy]
How Redis will select what to remove when maxmemory is reached.
Default value: undef
maxmemory_samples
Data type: Optional[Integer[1, 10]]
Select as well the sample size to check.
Default value: undef
min_slaves_max_lag
Data type: Integer[0]
The lag in seconds
Default value: 10
min_slaves_to_write
Data type: Integer[0]
Minimum number of slaves to be in "online" state
Default value: 0
modules
Data type: Array[Stdlib::Absolutepath]
Additional redis modules to load (.so path)
Default value: []
no_appendfsync_on_rewrite
Data type: Boolean
If you have latency problems turn this to 'true'. Otherwise leave it as
Default value: false
notify_keyspace_events
Data type: Optional[String[1]]
Which events to notify Pub/Sub clients about events happening
Default value: undef
notify_service
Data type: Boolean
You may disable service reloads when config files change
Default value: true
output_buffer_limit_slave
Data type: String[1]
Value of client-output-buffer-limit-slave in redis config
Default value: '256mb 64mb 60'
output_buffer_limit_pubsub
Data type: String[1]
Value of client-output-buffer-limit-pubsub in redis config
Default value: '32mb 8mb 60'
package_ensure
Data type: String[1]
Default action for package.
Default value: 'installed'
package_name
Data type: String[1]
Upstream package name.
Default value: $redis::params::package_name
pid_file
Data type: Stdlib::Absolutepath
Where to store the pid.
Default value: $redis::params::pid_file
port
Data type: Stdlib::Port
Configure which port to listen on.
Default value: 6379
protected_mode
Data type: Boolean
Whether protected mode is enabled or not. Only applicable when no bind is set.
Default value: true
ppa_repo
Data type: Optional[String]
Specify upstream (Ubuntu) PPA entry.
Default value: undef
redis_apt_repo
Data type: Boolean
If you want to use the redis apt repository.
Default value: false
apt_location
Data type: Stdlib::HTTPSUrl
Specify the URL of the apt repository.
Default value: 'https://packages.redis.io/deb/'
apt_repos
Data type: String[1]
Specify the repository to use for apt. Defaults to 'main'.
Default value: 'main'
apt_release
Data type: Optional[String]
Specify the os codename.
Default value: undef
apt_key_id
Data type: String[1]
Specify the PGP key id to use for apt.
Default value: '54318FA4052D1E61A6B6F7BB5F4349D6BF53AA0C'
apt_key_server
Data type: String[1]
Specify the PGP key server to use for apt.
Default value: 'hkp://keyserver.ubuntu.com/'
apt_key_options
Data type: Optional[String]
Passes additional options to apt-key adv --keyserver-options
.
Default value: undef
rdbcompression
Data type: Boolean
Enable/disable compression of string objects using LZF when dumping.
Default value: true
rename_commands
Data type: Hash[String,String]
A list of Redis commands to rename or disable for security reasons
Default value: {}
repl_announce_ip
Data type: Optional[Stdlib::Host]
The specific IP or hostname a replica will report to its master
Default value: undef
repl_announce_port
Data type: Optional[Stdlib::Port]
The specific port a replica will report to its master
Default value: undef
repl_backlog_size
Data type: String[1]
The replication backlog size
Default value: '1mb'
repl_backlog_ttl
Data type: Integer[0]
The number of seconds to elapse before freeing backlog buffer
Default value: 3600
repl_disable_tcp_nodelay
Data type: Boolean
Enable/disable TCP_NODELAY on the slave socket after SYNC
Default value: false
repl_ping_slave_period
Data type: Integer[1]
Slaves send PINGs to server in a predefined interval. It's possible
Default value: 10
repl_timeout
Data type: Integer[1]
Set the replication timeout for:
Default value: 60
requirepass
Data type: Optional[Variant[String, Sensitive[String[1]], Deferred]]
Require clients to issue AUTH before processing any other commands.
Default value: undef
save_db_to_disk
Data type: Boolean
Set if save db to disk.
Default value: true
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' }
service_manage
Data type: Boolean
Specify if the service should be part of the catalog.
Default value: true
service_enable
Data type: Boolean
Enable/disable daemon at boot.
Default value: true
service_ensure
Data type: Stdlib::Ensure::Service
Specify if the server should be running.
Default value: 'running'
service_group
Data type: String[1]
Specify which group to run as.
Default value: 'redis'
service_name
Data type: String[1]
Specify the service name for Init or Systemd.
Default value: $redis::params::service_name
service_user
Data type: String[1]
Specify which user to run as.
Default value: 'redis'
service_timeout_start
Data type: Optional[Integer[0]]
Specify the time after which a service startup should be considered as failed.
Default value: undef
service_timeout_stop
Data type: Optional[Integer[0]]
Specify the time after which a service stop should be considered as failed.
Default value: undef
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
slave_priority
Data type: Integer[0]
The priority number for slave promotion by Sentinel
Default value: 100
slave_read_only
Data type: Boolean
You can configure a slave instance to accept writes or not.
Default value: true
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
slaveof
Data type: Optional[String[1]]
Use slaveof to make a Redis instance a copy of another Redis server.
Default value: undef
replicaof
Data type: Optional[String[1]]
Use replicaof to make a Redis instance a copy of another Redis server.
Default value: undef
slowlog_log_slower_than
Data type: Integer[-1]
Tells Redis what is the execution time, in microseconds, to exceed in order for the command to get logged.
Default value: 10000
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
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
syslog_enabled
Data type: Boolean
Enable/disable logging to the system logger.
Default value: false
syslog_facility
Data type: Optional[String[1]]
Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.
Default value: undef
tcp_backlog
Data type: Integer[0]
Sets the TCP backlog
Default value: 511
tcp_keepalive
Data type: Integer[0]
TCP keepalive.
Default value: 0
timeout
Data type: Integer[0]
Close the connection after a client is idle for N seconds (0 to disable).
Default value: 0
tls_port
Data type: Optional[Stdlib::Port]
Configure which TLS port to listen on.
Default value: undef
tls_cert_file
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 certificate file to use for TLS connections.
Default value: undef
tls_key_file
Data type: Optional[Stdlib::Absolutepath]
Specify which privaye key file to use for TLS connections.
Default value: undef
tls_ca_cert_file
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 CA certificate(s) bundle file to use.
Default value: undef
tls_ca_cert_dir
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 CA certificate(s) bundle directory to use.
Default value: undef
tls_auth_clients
Data type: Enum['yes', 'no', 'optional']
Specify if clients and replicas are required to authenticate using valid client side certificates.
Default value: 'no'
tls_replication
Data type: Boolean
Specify if TLS should be enabled on replication links.
Default value: false
tls_cluster
Data type: Boolean
Specify if TLS should be used for the bus protocol.
Default value: false
tls_ciphers
Data type: Optional[String[1]]
Configure allowed ciphers for TLS <= TLSv1.2.
Default value: undef
tls_ciphersuites
Data type: Optional[String[1]]
Configure allowed TLSv1.3 ciphersuites.
Default value: undef
tls_protocols
Data type: Optional[String[1]]
Configure allowed TLS protocol versions.
Default value: undef
tls_prefer_server_ciphers
Data type: Boolean
Specify if the server's preference should be used when choosing a cipher.
Default value: false
ulimit
Data type: Integer[0]
Limit the use of system-wide resources.
Default value: 65536
ulimit_managed
Data type: Boolean
Defines wheter the max number of open files for the systemd service unit is explicitly managed.
Default value: true
unixsocket
Data type: Variant[Stdlib::Absolutepath, Enum['']]
Define unix socket path
Default value: '/var/run/redis/redis.sock'
unixsocketperm
Data type: Variant[Stdlib::Filemode, Enum['']]
Define unix socket file permissions
Default value: '0755'
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
workdir_mode
Data type: Stdlib::Filemode
Adjust mode for data directory.
Default value: '0750'
workdir_group
Data type: Optional[String[1]]
Adjust filesystem group for $workdir.
Default value: undef
workdir_owner
Data type: Optional[String[1]]
Adjust filesystem owner for $workdir.
Default value: undef
debdefault_group
Data type: Optional[String[1]]
group of /etc/defaults/redis on Debian systems if undef, $redis::config_group is taken
Default value: undef
debdefault_file_mode
Data type: Optional[Stdlib::Filemode]
filemode of /etc/defaults/redis on Debian systems if undef, $redis::config_file_mode is taken
Default value: undef
debdefault_owner
Data type: Optional[String[1]]
owner of /etc/defaults/redis on Debian systems if undef, $redis::config_owner is taken
Default value: undef
zset_max_ziplist_entries
Data type: Integer[0]
Set max entries for sorted sets.
Default value: 128
zset_max_ziplist_value
Data type: Integer[0]
Set max values for sorted sets.
Default value: 64
cluster_enabled
Data type: Boolean
Enables redis 3.0 cluster functionality
Default value: false
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'
cluster_node_timeout
Data type: Integer[1]
Node timeout. Only set if cluster_enabled is true
Default value: 5000
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
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
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
instances
Data type: Hash[String[1], Hash]
Iterate through multiple instance configurations
Default value: {}
io_threads
Data type: Optional[Integer[1]]
Number of threads to handle IO operations in Redis
Default value: undef
io_threads_do_reads
Data type: Optional[Boolean]
Enabled/disable io_threads to handle reads
Default value: undef
cluster_allow_reads_when_down
Data type: Optional[Boolean]
Allows nodes to serve read data while cluster status is down
Default value: undef
cluster_replica_no_failover
Data type: Optional[Boolean]
Disabled automatic failover for replica
Default value: undef
dynamic_hz
Data type: Optional[Boolean]
When dynamic HZ is enabled, the actual configured HZ will be used as a baseline, but multiples of the configured HZ value will be actually used as needed once more clients are connected.
Default value: undef
activedefrag
Data type: Optional[Boolean]
Enable/disable active defragmentation
Default value: undef
active_defrag_ignore_bytes
Data type: String[1]
Minimum amount of fragmentation waste to start active defrag Only set if activedefrag is true
Default value: '100mb'
active_defrag_threshold_lower
Data type: Integer[1, 100]
Minimum percentage of fragmentation to start active defrag Only set if activedefrag is true
Default value: 10
active_defrag_threshold_upper
Data type: Integer[1, 100]
Maximum percentage of fragmentation at which we use maximum effort Only set if activedefrag is true
Default value: 100
active_defrag_cycle_min
Data type: Integer[1, 100]
Minimal effort for defrag in CPU percentage, to be used when the lower threshold is reached Only set if activedefrag is true
Default value: 1
active_defrag_cycle_max
Data type: Integer[1, 100]
Maximal effort for defrag in CPU percentage, to be used when the upper threshold is reached Only set if activedefrag is true
Default value: 100
active_defrag_max_scan_fields
Data type: Integer[1]
Maximum number of set/hash/zset/list fields that will be processed from the main dictionary scan Only set if activedefrag is true
Default value: 1000
jemalloc_bg_thread
Data type: Optional[Boolean]
Jemalloc background thread for purging will be enabled by default
Default value: undef
rdb_save_incremental_fsync
Data type: Optional[Boolean]
When redis saves RDB file, if the following option is enabled the file will be fsync-ed every 32 MB of data generated.
Default value: undef
dnf_module_stream
Data type: Optional[String[1]]
Manage the DNF module and set the version. This only makes sense on distributions that use DNF package manager, such as EL8 or Fedora.
Default value: undef
acls
Data type: Array[String[1]]
This is a way to pass an array of raw ACLs to Redis. The ACLs must be in the form of:
user USERNAME [additional ACL options]
Default value: []
manage_service_file
Data type: Boolean
Determine if the systemd service file should be managed
Default value: false
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.
Examples
include redis::administration
class {'redis::administration':
enable_overcommit_memory => false,
}
Parameters
The following parameters are available in the redis::administration
class:
enable_overcommit_memory
Data type: Boolean
Enable the overcommit memory setting
Default value: true
somaxconn
Data type: Integer[0]
Set somaxconn value
Default value: 65535
redis::sentinel
Install redis-sentinel
Examples
Basic inclusion
include redis::sentinel
Configuring options
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
config_file
config_file_orig
config_file_mode
conf_template
daemonize
down_after
failover_timeout
log_file
log_level
master_name
redis_host
redis_port
requirepass
protected_mode
package_name
package_ensure
parallel_sync
pid_file
quorum
sentinel_announce_hostnames
sentinel_announce_ip
sentinel_bind
sentinel_port
sentinel_resolve_hostnames
sentinel_tls_port
service_group
service_name
service_user
service_enable
tls_cert_file
tls_key_file
tls_ca_cert_file
tls_ca_cert_dir
tls_auth_clients
tls_replication
working_dir
notification_script
client_reconfig_script
acls
service_ensure
auth_pass
Data type: Optional[Variant[String[1], Sensitive[String[1]]]]
The password to use to authenticate with the master and slaves.
Default value: undef
config_file
Data type: Stdlib::Absolutepath
The location and name of the sentinel config file.
Default value: $redis::params::sentinel_config_file
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
config_file_mode
Data type: Stdlib::Filemode
Permissions of config file.
Default value: '0644'
conf_template
Data type: String[1]
Define which template to use.
Default value: 'redis/redis-sentinel.conf.erb'
daemonize
Data type: Boolean
Have Redis sentinel run as a daemon.
Default value: $redis::params::sentinel_daemonize
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
failover_timeout
Data type: Integer[1]
Specify the failover timeout in milliseconds.
Default value: 180000
log_file
Data type: Stdlib::Absolutepath
Specify where to write log entries.
Default value: $redis::params::sentinel_log_file
log_level
Data type: Redis::LogLevel
Specify how much we should log.
Default value: 'notice'
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'
redis_host
Data type: Stdlib::Host
Specify the bound host of the master redis server.
Default value: '127.0.0.1'
redis_port
Data type: Stdlib::Port
Specify the port of the master redis server.
Default value: 6379
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
protected_mode
Data type: Boolean
Whether protected mode is enabled or not. Only applicable when no bind is set.
Default value: true
package_name
Data type: String[1]
The name of the package that installs sentinel.
Default value: $redis::params::sentinel_package_name
package_ensure
Data type: String[1]
Do we ensure this package. This parameter takes effect only if an independent package is required for sentinel.
Default value: 'installed'
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
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
quorum
Data type: Integer[1]
Number of sentinels that must agree that a master is down to signal sdown state.
Default value: 2
sentinel_announce_hostnames
Data type: Optional[Enum['yes', 'no']]
Whether or not sentinels will announce hostnames instead of ip addresses to clients. This can be required for TLS.
Default value: undef
sentinel_announce_ip
Data type: Optional[Stdlib::Host]
Specify the IP or hostname that Sentinel will announce
Default value: undef
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
sentinel_port
Data type: Stdlib::Port
The port of sentinel server.
Default value: 26379
sentinel_resolve_hostnames
Data type: Optional[Enum['yes', 'no']]
Whether or not sentinels can resolve hostnames to ip addresses.
Default value: undef
sentinel_tls_port
Data type: Optional[Stdlib::Port::Unprivileged]
Configure which TLS port to listen on.
Default value: undef
service_group
Data type: String[1]
The group of the config file.
Default value: 'redis'
service_name
Data type: String[1]
The name of the service (for puppet to manage).
Default value: $redis::params::sentinel_service_name
service_user
Data type: String[1]
The owner of the config file.
Default value: 'redis'
service_enable
Data type: Boolean
Enable the service at boot time.
Default value: true
tls_cert_file
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 certificate file to use for TLS connections.
Default value: undef
tls_key_file
Data type: Optional[Stdlib::Absolutepath]
Specify which privaye key file to use for TLS connections.
Default value: undef
tls_ca_cert_file
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 CA certificate(s) bundle file to use.
Default value: undef
tls_ca_cert_dir
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 CA certificate(s) bundle directory to use.
Default value: undef
tls_auth_clients
Data type: Enum['yes', 'no', 'optional']
Specify if clients and replicas are required to authenticate using valid client side certificates.
Default value: 'no'
tls_replication
Data type: Boolean
Specify if TLS should be enabled on replication links.
Default value: false
working_dir
Data type: Stdlib::Absolutepath
The directory into which sentinel will change to avoid mount conflicts.
Default value: $redis::params::sentinel_working_dir
notification_script
Data type: Optional[Stdlib::Absolutepath]
Path to the notification script
Default value: undef
client_reconfig_script
Data type: Optional[Stdlib::Absolutepath]
Path to the client-reconfig script
Default value: undef
acls
Data type: Array[String[1]]
This is a way to pass an array of raw ACLs to Sentinel. The ACLs must be in the form of:
user USERNAME [additional ACL options]
Default value: []
service_ensure
Data type: Stdlib::Ensure::Service
Default value: 'running'
Defined types
redis::instance
This is an defined type to allow the configuration of multiple redis instances on one machine without conflicts
Examples
redis::instance {'6380':
port => 6380,
}
Parameters
The following parameters are available in the redis::instance
defined type:
activerehashing
aof_load_truncated
aof_rewrite_incremental_fsync
appendfilename
appendfsync
appendonly
auto_aof_rewrite_min_size
auto_aof_rewrite_percentage
bind
config_file_orig
config_file
config_file_mode
config_group
config_owner
conf_template
daemonize
databases
dbfilename
extra_config_file
hash_max_ziplist_entries
hash_max_ziplist_value
hll_sparse_max_bytes
hz
latency_monitor_threshold
list_max_ziplist_entries
list_max_ziplist_value
log_dir
log_dir_mode
log_file
log_level
managed_by_cluster_manager
manage_service_file
masterauth
maxclients
maxmemory
maxmemory_policy
maxmemory_samples
min_slaves_max_lag
min_slaves_to_write
modules
no_appendfsync_on_rewrite
notify_keyspace_events
notify_service
pid_file
port
protected_mode
rdbcompression
rename_commands
repl_announce_ip
repl_announce_port
repl_backlog_size
repl_backlog_ttl
repl_disable_tcp_nodelay
repl_ping_slave_period
repl_timeout
requirepass
save_db_to_disk
save_db_to_disk_interval
service_name
service_enable
service_ensure
service_group
service_user
service_timeout_start
service_timeout_stop
set_max_intset_entries
slave_priority
slave_read_only
slave_serve_stale_data
slaveof
replicaof
slowlog_log_slower_than
slowlog_max_len
stop_writes_on_bgsave_error
syslog_enabled
syslog_facility
tcp_backlog
tcp_keepalive
timeout
tls_port
tls_cert_file
tls_key_file
tls_ca_cert_file
tls_ca_cert_dir
tls_auth_clients
tls_replication
tls_cluster
tls_ciphers
tls_ciphersuites
tls_protocols
tls_prefer_server_ciphers
ulimit
ulimit_managed
unixsocket
unixsocketperm
workdir
workdir_mode
zset_max_ziplist_entries
zset_max_ziplist_value
cluster_enabled
cluster_config_file
cluster_node_timeout
cluster_slave_validity_factor
cluster_require_full_coverage
cluster_migration_barrier
io_threads
io_threads_do_reads
cluster_allow_reads_when_down
cluster_replica_no_failover
dynamic_hz
activedefrag
active_defrag_ignore_bytes
active_defrag_threshold_lower
active_defrag_threshold_upper
active_defrag_cycle_min
active_defrag_cycle_max
active_defrag_max_scan_fields
jemalloc_bg_thread
rdb_save_incremental_fsync
acls
output_buffer_limit_slave
output_buffer_limit_pubsub
custom_options
activerehashing
Data type: Boolean
Enable/disable active rehashing.
Default value: $redis::activerehashing
aof_load_truncated
Data type: Boolean
Enable/disable loading truncated AOF file
Default value: $redis::aof_load_truncated
aof_rewrite_incremental_fsync
Data type: Boolean
Enable/disable fsync for AOF file
Default value: $redis::aof_rewrite_incremental_fsync
appendfilename
Data type: String[1]
The name of the append only file
Default value: $redis::appendfilename
appendfsync
Data type: Enum['no', 'always', 'everysec']
Adjust fsync mode. Valid options: always, everysec, no.
Default value: $redis::appendfsync
appendonly
Data type: Boolean
Enable/disable appendonly mode.
Default value: $redis::appendonly
auto_aof_rewrite_min_size
Data type: String[1]
Adjust minimum size for auto-aof-rewrite.
Default value: $redis::auto_aof_rewrite_min_size
auto_aof_rewrite_percentage
Data type: Integer[0]
Adjust percentatge for auto-aof-rewrite.
Default value: $redis::auto_aof_rewrite_percentage
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
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
config_file
Data type: Stdlib::Absolutepath
Adjust main configuration file.
Default value: $redis::config_file
config_file_mode
Data type: Stdlib::Filemode
Adjust permissions for configuration files.
Default value: $redis::config_file_mode
config_group
Data type: String[1]
Adjust filesystem group for config files.
Default value: $redis::config_group
config_owner
Data type: String[1]
Adjust filesystem owner for config files.
Default value: $redis::config_owner
conf_template
Data type: String[1]
Define which template to use.
Default value: $redis::conf_template
daemonize
Data type: Boolean
Have Redis run as a daemon.
Default value: true
databases
Data type: Integer[1]
Set the number of databases.
Default value: $redis::databases
dbfilename
Data type: Variant[String[1], Boolean]
The filename where to dump the DB
Default value: $redis::dbfilename
extra_config_file
Data type: Optional[String]
Optional extra config file to include
Default value: $redis::extra_config_file
hash_max_ziplist_entries
Data type: Integer[0]
Set max ziplist entries for hashes.
Default value: $redis::hash_max_ziplist_entries
hash_max_ziplist_value
Data type: Integer[0]
Set max ziplist values for hashes.
Default value: $redis::hash_max_ziplist_value
hll_sparse_max_bytes
Data type: Integer[0]
HyperLogLog sparse representation bytes limit
Default value: $redis::hll_sparse_max_bytes
hz
Data type: Integer[1, 500]
Set redis background tasks frequency
Default value: $redis::hz
latency_monitor_threshold
Data type: Integer[0]
Latency monitoring threshold in milliseconds
Default value: $redis::latency_monitor_threshold
list_max_ziplist_entries
Data type: Integer[0]
Set max ziplist entries for lists.
Default value: $redis::list_max_ziplist_entries
list_max_ziplist_value
Data type: Integer[0]
Set max ziplist values for lists.
Default value: $redis::list_max_ziplist_value
log_dir
Data type: Stdlib::Absolutepath
Specify directory where to write log entries.
Default value: $redis::log_dir
log_dir_mode
Data type: Stdlib::Filemode
Adjust mode for directory containing log files.
Default value: $redis::log_dir_mode
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"
log_level
Data type: Redis::LogLevel
Specify the server verbosity level.
Default value: $redis::log_level
managed_by_cluster_manager
Data type: Boolean
Choose if redis will be managed by a cluster manager such as pacemaker or rgmanager
Default value: $redis::managed_by_cluster_manager
manage_service_file
Data type: Boolean
Determine if the systemd service file should be managed
Default value: true
masterauth
Data type: Optional[Variant[String[1], Sensitive[String[1]], Deferred]]
If the master is password protected (using the "requirepass" configuration
Default value: $redis::masterauth
maxclients
Data type: Integer[1]
Set the max number of connected clients at the same time.
Default value: $redis::maxclients
maxmemory
Data type: Optional[Variant[Integer, String]]
Don't use more memory than the specified amount of bytes.
Default value: $redis::maxmemory
maxmemory_policy
Data type: Optional[Redis::MemoryPolicy]
How Redis will select what to remove when maxmemory is reached.
Default value: $redis::maxmemory_policy
maxmemory_samples
Data type: Optional[Integer[1, 10]]
Select as well the sample size to check.
Default value: $redis::maxmemory_samples
min_slaves_max_lag
Data type: Integer[0]
The lag in seconds
Default value: $redis::min_slaves_max_lag
min_slaves_to_write
Data type: Integer[0]
Minimum number of slaves to be in "online" state
Default value: $redis::min_slaves_to_write
modules
Data type: Array[Stdlib::Absolutepath]
Additional redis modules to load (.so path)
Default value: $redis::modules
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
notify_keyspace_events
Data type: Optional[String[1]]
Which events to notify Pub/Sub clients about events happening
Default value: $redis::notify_keyspace_events
notify_service
Data type: Boolean
You may disable instance service reloads when config file changes
Default value: true
pid_file
Data type: Stdlib::Absolutepath
Where to store the pid.
Default value: "/var/run/${service_name}/redis.pid"
port
Data type: Stdlib::Port
Configure which port to listen on.
Default value: $redis::port
protected_mode
Data type: Boolean
Whether protected mode is enabled or not. Only applicable when no bind is set.
Default value: $redis::protected_mode
rdbcompression
Data type: Boolean
Enable/disable compression of string objects using LZF when dumping.
Default value: $redis::rdbcompression
rename_commands
Data type: Hash[String,String]
A list of Redis commands to rename or disable for security reasons
Default value: $redis::rename_commands
repl_announce_ip
Data type: Optional[Stdlib::Host]
The specific IP or hostname a replica will report to its master
Default value: $redis::repl_announce_ip
repl_announce_port
Data type: Optional[Stdlib::Port]
The specific port a replica will report to its master
Default value: $redis::repl_announce_port
repl_backlog_size
Data type: String[1]
The replication backlog size
Default value: $redis::repl_backlog_size
repl_backlog_ttl
Data type: Integer[0]
The number of seconds to elapse before freeing backlog buffer
Default value: $redis::repl_backlog_ttl
repl_disable_tcp_nodelay
Data type: Boolean
Enable/disable TCP_NODELAY on the slave socket after SYNC
Default value: $redis::repl_disable_tcp_nodelay
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
repl_timeout
Data type: Integer[1]
Set the replication timeout for:
Default value: $redis::repl_timeout
requirepass
Data type: Optional[Variant[String, Sensitive[String[1]], Deferred]]
Require clients to issue AUTH before processing any other commands.
Default value: $redis::requirepass
save_db_to_disk
Data type: Boolean
Set if save db to disk.
Default value: $redis::save_db_to_disk
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
service_name
Data type: String[1]
The service name for this instance
Default value: "redis-server-${name}"
service_enable
Data type: Boolean
Enable/disable daemon at boot.
Default value: $redis::service_enable
service_ensure
Data type: Stdlib::Ensure::Service
Specify if the server should be running.
Default value: $redis::service_ensure
service_group
Data type: String[1]
Specify which group to run as.
Default value: $redis::service_group
service_user
Data type: String[1]
Specify which user to run as.
Default value: $redis::service_user
service_timeout_start
Data type: Optional[Integer[0]]
Specify the time after which a service startup should be considered as failed.
Default value: $redis::service_timeout_start
service_timeout_stop
Data type: Optional[Integer[0]]
Specify the time after which a service stop should be considered as failed.
Default value: $redis::service_timeout_stop
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
slave_priority
Data type: Integer[0]
The priority number for slave promotion by Sentinel
Default value: $redis::slave_priority
slave_read_only
Data type: Boolean
You can configure a slave instance to accept writes or not.
Default value: $redis::slave_read_only
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
slaveof
Data type: Optional[String[1]]
Use slaveof to make a Redis instance a copy of another Redis server.
Default value: $redis::slaveof
replicaof
Data type: Optional[String[1]]
Use replicaof to make a Redis instance a copy of another Redis server.
Default value: $redis::replicaof
slowlog_log_slower_than
Data type: Integer[-1]
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
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
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
syslog_enabled
Data type: Boolean
Enable/disable logging to the system logger.
Default value: $redis::syslog_enabled
syslog_facility
Data type: Optional[String[1]]
Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.
Default value: $redis::syslog_facility
tcp_backlog
Data type: Integer[0]
Sets the TCP backlog
Default value: $redis::tcp_backlog
tcp_keepalive
Data type: Integer[0]
TCP keepalive.
Default value: $redis::tcp_keepalive
timeout
Data type: Integer[0]
Close the connection after a client is idle for N seconds (0 to disable).
Default value: $redis::timeout
tls_port
Data type: Optional[Stdlib::Port]
Configure which TLS port to listen on.
Default value: $redis::tls_port
tls_cert_file
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 certificate file to use for TLS connections.
Default value: $redis::tls_cert_file
tls_key_file
Data type: Optional[Stdlib::Absolutepath]
Specify which privaye key file to use for TLS connections.
Default value: $redis::tls_key_file
tls_ca_cert_file
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 CA certificate(s) bundle file to use.
Default value: $redis::tls_ca_cert_file
tls_ca_cert_dir
Data type: Optional[Stdlib::Absolutepath]
Specify which X.509 CA certificate(s) bundle directory to use.
Default value: $redis::tls_ca_cert_dir
tls_auth_clients
Data type: Enum['yes', 'no', 'optional']
Specify if clients and replicas are required to authenticate using valid client side certificates.
Default value: $redis::tls_auth_clients
tls_replication
Data type: Boolean
Specify if TLS should be enabled on replication links.
Default value: $redis::tls_replication
tls_cluster
Data type: Boolean
Specify if TLS should be used for the bus protocol.
Default value: $redis::tls_cluster
tls_ciphers
Data type: Optional[String[1]]
Configure allowed ciphers for TLS <= TLSv1.2.
Default value: $redis::tls_ciphers
tls_ciphersuites
Data type: Optional[String[1]]
Configure allowed TLSv1.3 ciphersuites.
Default value: $redis::tls_ciphersuites
tls_protocols
Data type: Optional[String[1]]
Configure allowed TLS protocol versions.
Default value: $redis::tls_protocols
tls_prefer_server_ciphers
Data type: Optional[Boolean]
Specify if the server's preference should be used when choosing a cipher.
Default value: $redis::tls_prefer_server_ciphers
ulimit
Data type: Integer[0]
Limit the use of system-wide resources.
Default value: $redis::ulimit
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
unixsocket
Data type: Variant[Stdlib::Absolutepath, Enum['']]
Define unix socket path
Default value: "/var/run/${service_name}/redis.sock"
unixsocketperm
Data type: Variant[Stdlib::Filemode, Enum['']]
Define unix socket file permissions
Default value: $redis::unixsocketperm
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}"
workdir_mode
Data type: Stdlib::Filemode
Adjust mode for data directory.
Default value: $redis::workdir_mode
zset_max_ziplist_entries
Data type: Integer[0]
Set max entries for sorted sets.
Default value: $redis::zset_max_ziplist_entries
zset_max_ziplist_value
Data type: Integer[0]
Set max values for sorted sets.
Default value: $redis::zset_max_ziplist_value
cluster_enabled
Data type: Boolean
Enables redis 3.0 cluster functionality
Default value: $redis::cluster_enabled
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
cluster_node_timeout
Data type: Integer[1]
Node timeout. Only set if cluster_enabled is true
Default value: $redis::cluster_node_timeout
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
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
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
io_threads
Data type: Optional[Integer[1]]
Number of threads to handle IO operations in Redis
Default value: $redis::io_threads
io_threads_do_reads
Data type: Optional[Boolean]
Enabled/disable io_threads to handle reads
Default value: $redis::io_threads_do_reads
cluster_allow_reads_when_down
Data type: Optional[Boolean]
Allows nodes to serve read data while cluster status is down
Default value: $redis::cluster_allow_reads_when_down
cluster_replica_no_failover
Data type: Optional[Boolean]
Disabled automatic failover for replica
Default value: $redis::cluster_replica_no_failover
dynamic_hz
Data type: Optional[Boolean]
When dynamic HZ is enabled, the actual configured HZ will be used as a baseline, but multiples of the configured HZ value will be actually used as needed once more clients are connected.
Default value: $redis::dynamic_hz
activedefrag
Data type: Optional[Boolean]
Enable/disable active defragmentation
Default value: $redis::activedefrag
active_defrag_ignore_bytes
Data type: String[1]
Minimum amount of fragmentation waste to start active defrag Only set if activedefrag is true
Default value: $redis::active_defrag_ignore_bytes
active_defrag_threshold_lower
Data type: Integer[1, 100]
Minimum percentage of fragmentation to start active defrag Only set if activedefrag is true
Default value: $redis::active_defrag_threshold_lower
active_defrag_threshold_upper
Data type: Integer[1, 100]
Maximum percentage of fragmentation at which we use maximum effort Only set if activedefrag is true
Default value: $redis::active_defrag_threshold_upper
active_defrag_cycle_min
Data type: Integer[1, 100]
Minimal effort for defrag in CPU percentage, to be used when the lower threshold is reached Only set if activedefrag is true
Default value: $redis::active_defrag_cycle_min
active_defrag_cycle_max
Data type: Integer[1, 100]
Maximal effort for defrag in CPU percentage, to be used when the upper threshold is reached Only set if activedefrag is true
Default value: $redis::active_defrag_cycle_max
active_defrag_max_scan_fields
Data type: Integer[1]
Maximum number of set/hash/zset/list fields that will be processed from the main dictionary scan Only set if activedefrag is true
Default value: $redis::active_defrag_max_scan_fields
jemalloc_bg_thread
Data type: Optional[Boolean]
Jemalloc background thread for purging will be enabled by default
Default value: $redis::jemalloc_bg_thread
rdb_save_incremental_fsync
Data type: Optional[Boolean]
When redis saves RDB file, if the following option is enabled the file will be fsync-ed every 32 MB of data generated.
Default value: $redis::rdb_save_incremental_fsync
acls
Data type: Array[String[1]]
This is a way to pass an array of raw ACLs to Redis. The ACLs must be in the form of:
user USERNAME [additional ACL options]
Default value: $redis::acls
output_buffer_limit_slave
Data type: String[1]
Value of client-output-buffer-limit-slave in redis config
Default value: $redis::output_buffer_limit_slave
output_buffer_limit_pubsub
Data type: String[1]
Value of client-output-buffer-limit-pubsub in redis config
Default value: $redis::output_buffer_limit_pubsub
custom_options
Data type: Hash[String[1],Variant[String[1], Integer]]
hash of custom options, not available as direct parameter.
Default value: {}
Functions
redis::get
Type: Ruby 4.x API
Returns the value of the key being looked up or undef
if the key does not exist.
Examples
Get the version
$version = redis::get('version.myapp', 'redis://redis.example.com:6379')
$version_with_default = redis::get('version.myapp', 'redis://redis.example.com:6379', $::myapp_version)
redis::get(String[1] $key, Redis::RedisUrl $url, Optional[String] $default)
The redis::get function.
Returns: Optional[String]
Returns the value of the key from Redis
Examples
Get the version
$version = redis::get('version.myapp', 'redis://redis.example.com:6379')
$version_with_default = redis::get('version.myapp', 'redis://redis.example.com:6379', $::myapp_version)
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
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 Enum['debug', 'verbose', 'notice', 'warning']
Redis::MemoryPolicy
This can be one of:
- volatile-lru (Evict using approximated LRU, only keys with an expire set)
- allkeys-lru (Evict any key using approximated LRU)
- volatile-lfu (Evict using approximated LFU, only keys with an expire set)
- allkeys-lfu (Evict any key using approximated LFU)
- volatile-random (Remove a random key having an expire set)
- allkeys-random (Remove a random key, any key)
- volatile-ttl (Remove the key with the nearest expire time (minor TTL)
- noeviction (Don't evict anything, just return an error on write operations)
Alias of Enum['volatile-lru', 'allkeys-lru', 'volatile-lfu', 'allkeys-lfu', 'volatile-random', 'allkeys-random', 'volatile-ttl', 'noeviction']
Redis::RedisUrl
validate URL matches redis protocol
Alias of Pattern[/(^redis:\/\/)/]
Tasks
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
What are tasks?
Modules can contain tasks that take action outside of a desired state managed by Puppet. It’s perfect for troubleshooting or deploying one-off changes, distributing scripts to run across your infrastructure, or automating changes that need to happen in a particular order as part of an application deployment.
Tasks in this module release
Changelog
All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module.
v11.0.0 (2024-05-08)
Breaking changes:
Implemented enhancements:
- Add Debian 12 Support #520 (traylenator)
- update puppet-systemd upper bound to 8.0.0 #518 (TheMeier)
- Avoid deprecated systemd::service_limits #514 (traylenator)
- Allow
requirepass
to be set as a Sensitive string #512 (traylenator) - Modernize the acceptance tests #438 (ekohl)
- add custom options parameter to instance #431 (trefzer)
- Add some additional parameters for ownerships #429 (trefzer)
Fixed bugs:
- Install redis-sentinal package before redis #516 (traylenator)
- Support rich datatypes and deferred password values #515 (traylenator)
v10.0.0 (2024-02-16)
Breaking changes:
Implemented enhancements:
- Add Ubuntu 22.04 #505 (rwaffen)
- Implement rudimentary Redis and Sentinel ACLs #502 (TwizzyDizzy)
Merged pull requests:
v9.3.0 (2023-11-14)
Implemented enhancements:
- Add Puppet 8 support #484 (bastelfreak)
v9.2.0 (2023-11-03)
Implemented enhancements:
Merged pull requests:
v9.1.0 (2023-07-29)
Implemented enhancements:
- puppetlabs/stdlib: Allow 9.x #483 (bastelfreak)
Merged pull requests:
- Add Rocky/AlmaLinux support #487 (bastelfreak)
- Specify environment module path for bolt #475 (traylenator)
v9.0.0 (2023-06-01)
Breaking changes:
- Drop EoL Debian 9 support #469 (bastelfreak)
- Drop Puppet 6 support #468 (bastelfreak)
Implemented enhancements:
Fixed bugs:
- Fix missing puppet strings #481 (ghoneycutt)
- Fix for redis.conf.epp bug: save_db_to_disk = false does not work. #478 (pankajr)
Closed issues:
- save_db_to_disk = false does not work #477
- Support deferred values for requirepass #473
- Replace
slaveof
withreplicaof
#401
Merged pull requests:
- Allow deferrables for masterauth & requirepass #476 (ThiefMaster)
- CI: Switch sysctl module to new namespace & cleanup .fixtures.yml #471 (bastelfreak)
- Drop Puppet 6 CI leftovers #470 (bastelfreak)
- add replicaof parameter(v2) #465 (jonasbartho)
v8.8.0 (2023-01-27)
Implemented enhancements:
Fixed bugs:
v8.7.0 (2022-12-09)
Implemented enhancements:
- Allow custom replica announce IP/port and Sentinel announce IP #459 (pierre-claranet)
v8.6.0 (2022-12-05)
Implemented enhancements:
v8.5.0 (2022-10-28)
Implemented enhancements:
- Use a single regular expression in the Redis fact #451 (ekohl)
- Add support for managing Redis dnfmodule on EL 8+ #450 (ehelms)
Merged pull requests:
v8.4.0 (2022-05-31)
Implemented enhancements:
- Add support for systemd service timeouts #447 (fraenki)
- Add support for Redis6 features #445 (fraenki)
Closed issues:
- Rediscluster on Ubuntu 20.04 #402
v8.3.0 (2022-04-04)
Implemented enhancements:
- Add tls settings to the redis::sentinel class and the redis-sentinel.conf template #443 (tparkercbn)
- Add Debian 11 support #440 (ekohl)
- Drop default PPA setting and only install EPEL on EL7 #435 (ekohl)
- CentOS9/RHEL9: Migrate configuration files to /etc/redis #434 (kajinamit)
- conditional instance restarts on config file changes #433 (aamerik)
- manage additional redis modules #426 (ymartin-ovh)
- service_template RuntimeDirectory #424 (aamerik)
Fixed bugs:
Closed issues:
- Single instance systemd service won't start on Arch Linux #439
Merged pull requests:
- Drop Archlinux support #441 (ekohl)
- Fix running acceptance tests in non-Docker environments #437 (ekohl)
- Correct docs on redis::get & regenerate REFERENCE.md #436 (ekohl)
v8.2.0 (2021-10-13)
Implemented enhancements:
Fixed bugs:
v8.1.1 (2021-08-30)
Fixed bugs:
v8.1.0 (2021-08-29)
Implemented enhancements:
- Ability to disable slowlog_log_slower_than #404
- Allow disable to disable slow log #414 (root-expert)
- Use Puppet-Datatype Sensitive for $masterauth and $auth_pass #403 (cocker-cc)
Merged pull requests:
v8.0.0 (2021-07-24)
Breaking changes:
- Use EPP for Configfile #407 (cocker-cc)
- Drop Ubuntu 16.04 support #406 (ekohl)
- Drop Puppet 5 support #392 (ekohl)
Implemented enhancements:
- Adding ability to secure Sentinel #399 (markasammut)
Fixed bugs:
Closed issues:
- Missing ability to secure sentinel? #305
Merged pull requests:
- switch from camptocamp/systemd to voxpupuli/systemd #408 (bastelfreak)
v7.0.0 (2021-04-28)
Breaking changes:
- Remove support for THP in Redis module - recommend forge module #385 (dom-nie)
- Drop sysinit /CentOS 6 support #382 (ekohl)
- Make augeasproviders_sysctl a soft dependency #377 (ekohl)
- Move package parameters to init.pp #374 (ekohl)
Implemented enhancements:
- Declare Puppet 7 support #400 (ekohl)
- Set ulimit via systemd using camptocamp/systemd #396 (ekohl)
- puppetlabs/stdlib: Allow 7.x #394 (bastelfreak)
- Allow relative paths for $log_file #387 (ekohl)
- Add support for rename-command in redis.conf #383 (carlhals)
- enable sentinel bind usage with multi ip #365 (ragingdave)
- Make protected-mode configurable for sentinel #272 (eliskovets)
Fixed bugs:
- Set the correct log dir on RH SCL #379 (ekohl)
- Drop dotdeb repo management support #371 (ekohl)
- Correct config_dir for scl support #353 (markasammut)
Closed issues:
- Make ulimit optional or use puppet-systemd for dropin #390
- After a reboot THP (Transparent Huge Pages) are enabled again #372
- File descriptor limit is not set in systemd unit file by default. #349
- Redhat SCL Config_Dir Issue #341
- [Feature Request] Add
rename-command
#242 - Undefined variable 'redis_server_version' warning on first run #227
Merged pull requests:
v6.1.0 (2020-09-11)
Implemented enhancements:
v6.0.0 (2020-05-11)
Breaking changes:
Implemented enhancements:
- Add support for RedHat/CentOS 8 #350 (yakatz)
- Add Debian 10 support #344 (ekohl)
- Finishing touches for multi-instance support #343 (fraenki)
- Set RuntimeDirectory in service template #342 (basti-nis)
Fixed bugs:
- change systemd stop command to redis-cli #355 (alexskr)
- Fix the sentinel pid file location for Ubuntu 18.04 #347 (ekohl)
Closed issues:
- Type forking causes service timeout #260
Merged pull requests:
- Use more native rspec and serverspec testing #348 (ekohl)
- Run acceptance tests with manage_repo => false #346 (ekohl)
- Update bolt testing to use modern versions #345 (ekohl)
v5.0.0 (2019-12-03)
Breaking changes:
- Closer match parameter to OS defaults #336 (ekohl)
- Stricter data types #328 (ekohl)
- Drop support for Redis 2, Debian 8 and Ubuntu 14.04; add Debian 9 and Ubuntu 18.04 #326 (ekohl)
Implemented enhancements:
- Instance is not read from hiera file #329
- Add SCL support #334 (ekohl)
- Support instances inside Hiera #330 (lordbink)
Closed issues:
- Can't disable unixsocket after #331
- 2.8 version of Redis on Debian 8 errors out #246
- Unable to unset unixsocket config parameter #228
- bind $ipaddress #94
- Create nodes.conf file? #76
Merged pull requests:
- Clean up preinstall handling and use modern facts #335 (ekohl)
- Allow empty unixsocket(perm) #333 (ekohl)
- Allow privileged ports in data types #332 (ekohl)
- Fix typo in type #327 (ekohl)
- Complete the transition to puppet-strings #325 (ekohl)
v4.2.1 (2019-09-19)
Fixed bugs:
Merged pull requests:
v4.2.0 (2019-07-22)
Implemented enhancements:
Closed issues:
Merged pull requests:
- Allow
puppetlabs/stdlib
6.x #314 (alexjfisher) - Fix manage_service_file variable #309 (CallumBanbery)
v4.1.0 (2019-05-02)
Implemented enhancements:
- Add service_enable parameter to sentinel.pp #307 (rschemm-godaddy)
Closed issues:
- Please release v3.3.2 due to Ubuntu 18.04 / systemd fix. #283
Merged pull requests:
v4.0.0 (2019-03-12)
This is the first release since the module was migrated to the Vox Pupuli puppet
namespace.
Breaking changes:
- Support binding to all interfaces #302 (alexjfisher)
- Drop support for puppet 3 and 4 #297 (alexjfisher)
- Convert
redisget
toredis::get
API v4 function #293 (alexjfisher)
Implemented enhancements:
- Bind the service on all available interface #60
- Add some parameter validation using data types #303 (alexjfisher)
- Initial rhel 8 support #284 (mbaldessari)
Closed issues:
- Get acceptance tests running again #292
- Convert function to API v4 ruby function #291
- Transparent Huge Pages (THP) Not Disabled on RHEL #278
- Looking for maintainer [Help needed] #277
- Travis Credential issues... still :( #267
- Outdated dependency puppetlabs-apt \< 3.0.0 #264
- cannot bind ipv4 and ipv6 #257
- Deprecate Puppet 3.X Support #152
Merged pull requests:
- Re-enable and fix acceptance tests. (Don't manage
/var/run/redis
on Debian systems) #299 (alexjfisher) - Update metadata.json for Vox Pupuli migration #298 (alexjfisher)
- Update
apt
andstdlib
dependencies #296 (alexjfisher) - Fix github license detection #295 (alexjfisher)
- Add badges to README #294 (alexjfisher)
- Fix tests and initial Voxpupuli modulesync #290 (alexjfisher)
- Lint and rubocop (autofixes only) #289 (alexjfisher)
v3.3.1 (2018-09-13)
Closed issues:
- Ulimit configuration broken for systemd #268
v3.3.0 (2018-06-19)
Closed issues:
- output_buffer_limit_pubsub and output_buffer_limit_slave #263
- Can't release - Require Forge Credential Refresh #262
- Module v3.2.0 not published to forge #255
- Inconsistent sentinel_package_name handling on Debian #253
- No pidfile for sentinel #238
- puppet-redis requires outdated puppetlabs-apt module #232
- Can't use as slave bound to localhost #229
- [Feature Request] Redis::Instance - Set default unixsocket #226
- Travis Forge Password Changed #216
Merged pull requests:
- Adds logic for installing redid-sentinel package #254 (petems)
- Update redis mode on wheezy #252 (petems)
- Fix spec for sentinel #251 (petems)
- get rid of getvar_emptystring function #249 (vicinus)
- Added log_level to sentinel. #248 (hp197)
- Adds redis_cli task #245 (petems)
- Bump Puppet version for acceptance to 4.10.8 #244 (petems)
- protected-mode configuration option (Redis 3.2+) #243 (Dan70402)
- Switch to using simp-beaker suites #241 (petems)
- Bumped apt version dependency to version \< 5.0.0 #237 (c4m4)
- Updates for EL6 #236 (petems)
- Pin version of redis gem #235 (petems)
- Added configuration options for client-output-buffer-limit #233 (mike-petersen)
- Allow
slaveof
when binding to localhost #231 (joshuaspence) - Fix issues with missing locale for Debian box #224 (petems)
- Instance service improvements #222 (kwevers)
- Make sure the service is en/disabled per user request #221 (kwevers)
- Split Redis instance socket files #220 (kwevers)
- Split Redis workdir #219 (kwevers)
- fix package_ensure version on ubuntu when it is in the 3:3.2.1 format #218 (sp-joseluis-ledesma)
- Split the redis instance logfiles by default #217 (kwevers)
- Use package_ensure if it specifies a version instead of the minimum_version #215 (sp-joseluis-ledesma)
v3.2.0 (2017-07-11)
Implemented enhancements:
- Cluster Support #62
Closed issues:
Merged pull requests:
- updated redis systemd unit file for better use with instances #214 (bostrowski13)
- Updates docker images for CentOS 6 and 7 #213 (petems)
- Update EPEL module #212 (petems)
- Refactor redisget() method #211 (petems)
- Update docs for puppet-strings #206 (petems)
- Add redis::instance defined type #200 (petems)
- Adding note about Puppet 3 support #153 (petems)
v3.1.1 (2017-05-19)
v3.1.0 (2017-05-19)
Implemented enhancements:
Fixed bugs:
- Sort problem in v1.2.4 template #195
Merged pull requests:
- Add an optional third parameter to redisget() to specify a default value #209 (petems)
- Updates docs for puppet functions #208 (petems)
- Add switch to manage File[/var/run/redis] #204 (petems)
- Ignore selinux default context for /etc/systemd/system/redis.service.d #202 (amoralej)
- Make TravisCI push to the Forge #191 (arioch)
v3.0.0 (2017-05-11)
Implemented enhancements:
- Ubuntu 16.04 support? #146
- [Whishlist] Extend ulimit parameter to support limits.conf and systemd #130
- Add overcommit.pp to deal with
Can't save in background: fork: Cannot allocate memory
? #105
Fixed bugs:
- The fix for issue #192 broke service_managed false #197
- Ubuntu 16.04 changed sentinel config filename #175
- sentinel support broken? #166
- Ownership problem with Ubuntu redis-server #150
- Parameters not valid for older Redis in config #111
Merged pull requests:
- Update sort to specify key #199 (petems)
- Adds tests for when Redis service is unmanaged #198 (petems)
- Changing Travis back to Trusty #194 (petems)
- Remove service notification #193 (petems)
- Improves ulimit configuration #192 (petems)
- Updates metadata supported versions #190 (petems)
- Adds tests for Ubuntu 1404 and Trusty package #189 (petems)
- Adds redis::administration class #188 (petems)
- Adds logic for managing redis-sentinel package #187 (petems)
- Bump to version 3.0.0 #186 (petems)
- Moves location of redis-sentinel file #184 (petems)
- (testing) Simplify command run by TravisCI #183 (ghoneycutt)
- Style #182 (ghoneycutt)
- Adds acceptance tests for the redisget() function #181 (petems)
- Add redisget() #179 (ghoneycutt)
- Fixes ordering of Apt repos #178 (petems)
- Add 2.4.10 config file for CentOS 6 #177 (petems)
- Refactoring common code patterns #174 (petems)
- Changes permission on /var/run/ directory #173 (petems)
- Bump Beaker Ruby versions #172 (petems)
- Fixes sentinel installation on Debian flavours #171 (petems)
- Adds vagrant beaker images #170 (petems)
- Adds acceptance test for master/slave testing #168 (petems)
- Renames spec file #165 (petems)
- Adds specific versions to fixtures #164 (petems)
- Changes for RHEL-ish specific configuration #162 (petems)
- Changes CentOS Docker images #160 (petems)
- Updates fact for CentOS 6 #159 (petems)
- Fixes lint arrow errors #158 (petems)
- README lint #155 (matonb)
- Archlinux: Added tests and update config_dir parameter #149 (bartjanssens92)
- Add CHANGELOG #148 (petems)
- Added Archlinux as supported OS #147 (bartjanssens92)
1.2.4 (2016-12-05)
Implemented enhancements:
- Speed up Travis #118
Fixed bugs:
- Wrong redis.conf after c45049986a7fcb1c9a0591de123c6bf97c761355 #142
- powerstack.org - No longer hosted #103
Closed issues:
- redis.conf under /etc/redis.conf #81
- Add socket option #79
- preinstall.pp fails on CEntOS 6.5 and Puppet Enterprise 2.7. #72
- How do I change from powerstack.org repo if I need to? Should I just edit manifests/preinstall.pp? #68
- puppet-redis || every time when puppet runs, the service restarts #59
- 'manage_repo => true' causes run to fail because add-apt-repository command isn't available #49
Merged pull requests:
- For folks that do not use redis to cache to disk #144 (petems)
- Revert "Changes templates to use scope" #143 (petems)
- Update sentinel.pp #141 (xprntl)
- Manage workdir and permissions #138 (petems)
- Adds minimum versions parameters #137 (petems)
- Adds redis-server version fact #136 (petems)
- adding /var/run/redis for Debian based hosts #135 (petems)
- Refactor unit tests #134 (petems)
- Update acceptance tests #133 (petems)
- Speed up Travis even more #125 (petems)
- Add fast finish to Travis #124 (petems)
- Changes package installation #123 (petems)
- Fix Beaker settings #122 (petems)
- Fixes gpg key for DotDeb #121 (petems)
- Sent bind address rebase #120 (petems)
- Changes templates to use scope #119 (petems)
- Add save interval squash #117 (petems)
- FreeBSD fixes #116 (petems)
- Consolidate travis and testing #115 (petems)
- Fix specs #114 (Phil-Friderici)
- Remove single quotes around variable #101 (rorybrowne)
1.2.3 (2016-09-19)
Merged pull requests:
- Adds spec for unixsocket and perms #99 (petems)
- Added the ability to configure Unix socket binding #97 (gcelestine)
- Lint and English cleanup in the redis.conf #93 (ryayon)
- Added more configuration options to redis.conf #90 (hanej)
- Make notification of service optional #89 (michaeltchapman)
1.2.2 (2016-03-17)
Closed issues:
- Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type redis #86
- Potential bug:
64min
should read64mb
#73 - Typo on sentinel.pp on if defined #69
- Does't configure EPEL repository on CentOS 7 #61
1.2.1 (2015-12-09)
Merged pull requests:
1.2.0 (2015-12-03)
Closed issues:
- $daemonize is defaulted to 'false' on Redhat OS, which causes service command to hang #64
- Redis service start fail on Debian stable (Wheezy 7.0) #52
Merged pull requests:
- Redis Cluster 3.0 Feature #71 (claudio-walser)
- Fix Support for EL7 and Puppet 4 #66 (trlinkin)
- Add a option to override the service provider #63 (nerzhul)
- add support for hz option #50 (nerzhul)
1.1.3 (2015-08-19)
Closed issues:
- Unable to bring in as a dependency #47
Merged pull requests:
1.1.2 (2015-08-06)
Closed issues:
- Error on CentOS 7 when manage_repo: true #44
1.1.1 (2015-08-04)
Closed issues:
- Commit edd7cb55931fe0336bfee475c738ac4b91308f98 seems to be pasting undef params into redis.conf #41
Merged pull requests:
- Save db to disk #46 (adrian-balcan-ygt)
- Use puppetlabs_spec_helper for testing #45 (jlyheden)
- copy variables used in template to local scope #42 (eoly)
1.1.0 (2015-06-22)
Merged pull requests:
1.0.7 (2015-06-02)
Fixed bugs:
- Sentinel init/upstart file doesn't exist #18
Closed issues:
- Default config_owner of redis #39
- Duplicate decleration Package[redis] when both include redis and redis::sentinel #36
- Does not work with Debian 7.8 with redis version 2.4.14-1 #24
Merged pull requests:
- Fixed duplicate declaration of package #38 (raiblue)
- fix issue with params.pp with strict_variables enabled #35 (eoly)
- Enable to not manage the Redis service #34 (Spredzy)
- Suse conf file fix #33 (christofhaerens)
- added Suse osfamily #32 (christofhaerens)
1.0.6 (2015-05-05)
1.0.5 (2015-03-30)
1.0.4 (2015-01-19)
1.0.3 (2015-01-05)
Implemented enhancements:
- Feature Request: support for redis-sentinel #13
1.0.2 (2014-12-17)
1.0.1 (2014-10-22)
1.0.0 (2014-10-22)
0.0.10 (2014-08-29)
0.0.9 (2014-08-29)
Closed issues:
- Amazon AMI Installation/Initialization Issue #11
0.0.8 (2014-03-27)
Closed issues:
0.0.7 (2014-01-13)
0.0.6 (2013-08-07)
Merged pull requests:
0.0.5 (2013-07-22)
Closed issues:
- Redis config 2.6 not compatible with EPELs 2.4 on Centos6 #2
0.0.4 (2013-07-17)
Closed issues:
- Default config path wrong for RedHat #1
0.0.3 (2013-07-08)
0.0.2 (2013-06-19)
0.0.1 (2013-06-19)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 8.4.0 < 10.0.0)
- puppet/systemd (>= 2.0.0 < 8.0.0)
Copyright (C) 2012 Tom De Vylder Copyright (C) 2017 Garrett Honeycutt <code@garretthoneycutt.com> Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.