puppet-aodh/manifests/coordination.pp
Takashi Kajinami 97682cfa99 Remove deprecated aodh::evaluator::coordination_url
... because it was deprecated during Xena cycle[1] in favor of the new
aodh::coordination class.

[1] 16091c8dd6f97f55fb7875e7843f3de7017a99ce

Change-Id: I0e11987c7d121b2fb639274ed60181c56ce4f6d1
2022-08-05 01:15:54 +09:00

45 lines
1.2 KiB
Puppet

# == Class: aodh::coordination
#
# Setup and configure Aodh coordination settings.
#
# === Parameters
#
# [*backend_url*]
# (Optional) Coordination backend URL.
# Defaults to $::os_service_default
#
# [*heartbeat_interval*]
# (Optional) Number of seconds between heartbeats for distributed
# coordination.
# Defaults to $::os_service_default
#
# [*retry_backoff*]
# (Optional) Retry backoff factor when retrying to connect with coordination
# backend.
# Defaults to $::os_service_default
#
# [*max_retry_interval*]
# (Optional) Maximum number of seconds between retry to join partitioning
# group
# Defaults to $::os_service_default
#
class aodh::coordination (
$backend_url = $::os_service_default,
$heartbeat_interval = $::os_service_default,
$retry_backoff = $::os_service_default,
$max_retry_interval = $::os_service_default,
) {
include aodh::deps
oslo::coordination{ 'aodh_config':
backend_url => $backend_url
}
aodh_config {
'coordination/heartbeat_interval': value => $heartbeat_interval;
'coordination/retry_backoff': value => $retry_backoff;
'coordination/max_retry_interval': value => $max_retry_interval;
}
}