puppet-zaqar/manifests/management/redis.pp
Takashi Kajinami 484d14fb2c Add support for Redis management store driver
Change-Id: I29b7a7e16ea1f8a2b5a80bb44cdd8e902a3b3350
2021-11-09 13:24:41 +00:00

31 lines
870 B
Puppet

# == class: zaqar::management::redis
#
# [*uri*]
# Redis connection URI. Required.
#
# [*max_reconnect_attempts*]
# Maximum number of times to retry an operation that failed due to a redis
# node failover.
# Defaults to $::os_service_default
#
# [*reconnect_sleep*]
# Base sleep interval between attempts to reconnect after a redis node
# failover.
# Defaults to $::os_service_default
#
class zaqar::management::redis(
$uri,
$max_reconnect_attempts = $::os_service_default,
$reconnect_sleep = $::os_service_default,
) {
include zaqar::deps
zaqar_config {
'drivers:management_store:redis/uri': value => $uri, secret => true;
'drivers:management_store:redis/max_reconnect_attempts': value => $max_reconnect_attempts;
'drivers:management_store:redis/reconnect_sleep': value => $reconnect_sleep;
}
}