Takashi Kajinami 9ae179cd51 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: If6eb852b44673ea6b6a629aa1381b78bb6ae5646
2023-03-02 12:51:11 +09:00

31 lines
898 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 $facts['os_service_default']
#
# [*reconnect_sleep*]
# Base sleep interval between attempts to reconnect after a redis node
# failover.
# Defaults to $facts['os_service_default']
#
class zaqar::management::redis(
$uri,
$max_reconnect_attempts = $facts['os_service_default'],
$reconnect_sleep = $facts['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;
}
}