From a02206f3d73fca0cade9fc7e0a6f470d365f52c2 Mon Sep 17 00:00:00 2001 From: Carlos Camacho Date: Wed, 27 Dec 2017 14:58:48 +0100 Subject: [PATCH] Replace colon with a dash. IPv6 addresses have colons as separators, in this case we cant name an order with colons. To preserve the IPv6 address we can replace it with a dash. Change-Id: I87a1fb8952081dcb49f64ffff62414df120dccac Closes-bug: 1740261 --- manifests/haproxy/horizon_endpoint.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/haproxy/horizon_endpoint.pp b/manifests/haproxy/horizon_endpoint.pp index e44c4b88f..1e6e73bb6 100644 --- a/manifests/haproxy/horizon_endpoint.pp +++ b/manifests/haproxy/horizon_endpoint.pp @@ -145,7 +145,10 @@ class tripleo::haproxy::horizon_endpoint ( collect_exported => false, } hash(zip($ip_addresses, $server_names)).each | $ip, $server | { - haproxy::balancermember { "horizon_${ip}_${server}": + # We need to be sure the IP (IPv6) don't have colons + # which is a reserved character to reference manifests + $non_colon_ip = regsubst($ip, ':', '-', 'G') + haproxy::balancermember { "horizon_${non_colon_ip}_${server}": listening_service => 'horizon', ports => $backend_port, ipaddresses => $ip,