Merge "HAProxy: Replace hiera by lookup (1)"
This commit is contained in:
commit
d8c411ef9a
|
@ -34,17 +34,17 @@
|
||||||
#
|
#
|
||||||
# [*enable_load_balancer*]
|
# [*enable_load_balancer*]
|
||||||
# (Optional) Whether or not loadbalancer is enabled.
|
# (Optional) Whether or not loadbalancer is enabled.
|
||||||
# Defaults to hiera('enable_load_balancer', true).
|
# Defaults to lookup('enable_load_balancer', undef, undef, true).
|
||||||
#
|
#
|
||||||
# [*step*]
|
# [*step*]
|
||||||
# (Optional) The current step in deployment. See tripleo-heat-templates
|
# (Optional) The current step in deployment. See tripleo-heat-templates
|
||||||
# for more details.
|
# for more details.
|
||||||
# Defaults to hiera('step')
|
# Defaults to Integer(lookup('step'))
|
||||||
#
|
#
|
||||||
class tripleo::profile::base::haproxy (
|
class tripleo::profile::base::haproxy (
|
||||||
$certificates_specs = {},
|
$certificates_specs = {},
|
||||||
$enable_load_balancer = hiera('enable_load_balancer', true),
|
$enable_load_balancer = lookup('enable_load_balancer', undef, undef, true),
|
||||||
$step = Integer(hiera('step')),
|
$step = Integer(lookup('step')),
|
||||||
) {
|
) {
|
||||||
if $step >= 1 {
|
if $step >= 1 {
|
||||||
if $enable_load_balancer {
|
if $enable_load_balancer {
|
||||||
|
|
Loading…
Reference in New Issue