- deploy redis/sentinel ha cluster for git - update redis to 7 (required for almalinux 9) - enable requirepass/masterauth Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/336
26 lines
955 B
Puppet
26 lines
955 B
Puppet
class redisha::params (
|
|
Boolean $redisha_members_lookup = false,
|
|
Optional[String] $redisha_members_role = undef,
|
|
Array $redisha_servers = [],
|
|
|
|
# both
|
|
Stdlib::Host $redis_host = $facts['networking']['ip'],
|
|
Stdlib::Port $redis_port = 6379,
|
|
Optional[String] $requirepass = undef,
|
|
|
|
# redis
|
|
Optional[String] $dnf_module_stream = '7',
|
|
Integer[1] $databases = 16,
|
|
Optional[Variant[String, Sensitive[String], Deferred]] $masterauth = $redisha::params::requirepass,
|
|
|
|
# sentinel
|
|
String[1] $master_name = 'mymaster',
|
|
Optional[Variant[String, Sensitive[String]]] $auth_pass = $redisha::params::requirepass,
|
|
Integer[1] $quorum = 2,
|
|
Enum['yes', 'no'] $sentinel_resolve_hostnames = 'yes',
|
|
Enum['yes', 'no'] $sentinel_announce_hostnames = 'yes',
|
|
Stdlib::Host $sentinel_announce_ip = $facts['networking']['ip'],
|
|
Array[Stdlib::IP::Address] $sentinel_bind = [$facts['networking']['ip']],
|
|
Stdlib::Port $sentinel_port = 26379,
|
|
){}
|