aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/loadbalancer.pp
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2016-05-25 15:51:39 -0400
committerEmilien Macchi <emilien@redhat.com>2016-05-26 14:39:22 +0000
commit727d1b006a619b3639bee3557942d15329286839 (patch)
treeb540bf378f0c1e132de928b69a6a950a3e0c27c2 /manifests/loadbalancer.pp
parentc894c7303bf575489bea9a5df1735250b86bfd6e (diff)
loadbalancer: make sure controller_* are array-typed
Make sure controller_hosts_real and controller_hosts_names_real become array-types anyway, so we don't need to add brackets in Hiera lookups (example on both undercloud & overcloud where we do [hiera('controller_host')]). Change-Id: I2fe899482acfd51919262bc7a6a1c9f450e173f4
Diffstat (limited to 'manifests/loadbalancer.pp')
-rw-r--r--manifests/loadbalancer.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp
index 2926e49..ebac621 100644
--- a/manifests/loadbalancer.pp
+++ b/manifests/loadbalancer.pp
@@ -392,16 +392,16 @@ class tripleo::loadbalancer (
fail('$controller_hosts or $controller_host (now deprecated) is a mandatory parameter')
}
if $controller_hosts {
- $controller_hosts_real = $controller_hosts
+ $controller_hosts_real = any2array($controller_hosts)
} else {
warning('$controller_host has been deprecated in favor of $controller_hosts')
- $controller_hosts_real = $controller_host
+ $controller_hosts_real = any2array($controller_host)
}
if !$controller_hosts_names {
- $controller_hosts_names_real = $controller_hosts_real
+ $controller_hosts_names_real = any2array($controller_hosts_real)
} else {
- $controller_hosts_names_real = $controller_hosts_names
+ $controller_hosts_names_real = any2array($controller_hosts_names)
}
if $manage_vip {