Files
puppet-octavia/manifests/compute.pp
Takashi Kajinami 083514abb1 Prepare for voxpupuli-puppet-lint-plugins
Fix new lint errors detected when full of the voxpupili lint plugins
are enabled.

Change-Id: I31c67cce601b6065ff74f3f2163ac5d57b031fd7
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-20 00:12:06 +09:00

40 lines
1.1 KiB
Puppet

# == Class: octavia::compute
#
# Setup and configure octavia.conf compute section.
#
# === Parameters:
#
# [*max_retries*]
# (Optional) The maximum attempts to retry an action with the compute
# service.
# Defaults to $facts['os_service_default']
#
# [*retry_interval*]
# (Optional) Seconds to wait before retrying an action with the compute
# service.
# Defaults to $facts['os_service_default']
#
# [*retry_backoff*]
# (Optional) The seconds to backoff retry attempts.
# Defaults to $facts['os_service_default']
#
# [*retry_max*]
# (Optional) The maximum interval in seconds between retry attempts.
# Defaults to $facts['os_service_default']
#
class octavia::compute (
$max_retries = $facts['os_service_default'],
$retry_interval = $facts['os_service_default'],
$retry_backoff = $facts['os_service_default'],
$retry_max = $facts['os_service_default'],
) {
include octavia::deps
octavia_config {
'compute/max_retries': value => $max_retries;
'compute/retry_interval': value => $retry_interval;
'compute/retry_backoff': value => $retry_backoff;
'compute/retry_max': value => $retry_max;
}
}