
This change replaces current implementation to manage coordination parameters by the base class in puppet-oslo. With this change the required backend package is installed according to the backend driver used. Depends-on: https://review.opendev.org/791628 Change-Id: I7e3a98a8b477df0580159ccc0e615cf63bae0e47
40 lines
1.1 KiB
Puppet
40 lines
1.1 KiB
Puppet
# == Class: designate::coordination
|
|
#
|
|
# Setup and configure Designate coordination settings.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*backend_url*]
|
|
# (Optional) Coordination backend URL.
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*heartbeat_interval*]
|
|
# (Optional) Number of seconds between hearbeats for distributed
|
|
# coordintation.
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*run_watchers_interval*]
|
|
# (Optional) Numeber of seconds between checks to see if group membership
|
|
# has changed.
|
|
# Defaults to $::os_service_default
|
|
#
|
|
class designate::coordination (
|
|
$backend_url = $::os_service_default,
|
|
$heartbeat_interval = $::os_service_default,
|
|
$run_watchers_interval = $::os_service_default,
|
|
) {
|
|
|
|
include designate::deps
|
|
|
|
$backend_url_real = pick($::designate::producer::backend_url, $backend_url)
|
|
|
|
oslo::coordination{ 'designate_config':
|
|
backend_url => $backend_url_real
|
|
}
|
|
|
|
designate_config {
|
|
'coordination/heartbeat_interval': value => $heartbeat_interval;
|
|
'coordination/run_watchers_interval': value => $run_watchers_interval;
|
|
}
|
|
}
|