Files
puppet-designate/manifests/coordination.pp
Takashi Kajinami 3e1ad7ebae Prepare for new lint plugins
This fixes a few lint warnings/errors detected by the following plugins
we aim to enable soon.
 - puppet-lint-file_ensure-check
 - puppet-lint-trailing_comma-check
 - puppet-lint-topscope-variable-check

Change-Id: I3604827f2a8457dfc407b00ec2d74b5dd9ae54f0
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-15 20:40:04 +09:00

42 lines
1.2 KiB
Puppet

# == Class: designate::coordination
#
# Setup and configure Designate coordination settings.
#
# === Parameters
#
# [*backend_url*]
# (Optional) Coordination backend URL.
# Defaults to $facts['os_service_default']
#
# [*heartbeat_interval*]
# (Optional) Number of seconds between heartbeats for distributed
# coordination.
# Defaults to $facts['os_service_default']
#
# [*run_watchers_interval*]
# (Optional) Number of seconds between checks to see if group membership
# has changed.
# Defaults to $facts['os_service_default']
#
class designate::coordination (
$backend_url = $facts['os_service_default'],
$heartbeat_interval = $facts['os_service_default'],
$run_watchers_interval = $facts['os_service_default'],
) {
include designate::deps
oslo::coordination{ 'designate_config':
backend_url => $backend_url,
}
designate_config {
'coordination/heartbeat_interval': value => $heartbeat_interval;
'coordination/run_watchers_interval': value => $run_watchers_interval;
}
# all coordination settings should be applied and all packages should be
# installed before service startup
Oslo::Coordination['designate_config'] -> Anchor['designate::service::begin']
}