Merge "HAProxy: Replace hiera by lookup (1)"

This commit is contained in:
Zuul 2022-07-01 22:27:07 +00:00 committed by Gerrit Code Review
commit d8c411ef9a
1 changed files with 5 additions and 5 deletions

View File

@ -34,17 +34,17 @@
#
# [*enable_load_balancer*]
# (Optional) Whether or not loadbalancer is enabled.
# Defaults to hiera('enable_load_balancer', true).
# Defaults to lookup('enable_load_balancer', undef, undef, true).
#
# [*step*]
# (Optional) The current step in deployment. See tripleo-heat-templates
# for more details.
# Defaults to hiera('step')
# Defaults to Integer(lookup('step'))
#
class tripleo::profile::base::haproxy (
$certificates_specs = {},
$enable_load_balancer = hiera('enable_load_balancer', true),
$step = Integer(hiera('step')),
$certificates_specs = {},
$enable_load_balancer = lookup('enable_load_balancer', undef, undef, true),
$step = Integer(lookup('step')),
) {
if $step >= 1 {
if $enable_load_balancer {