Add proper handling of IPv6 addresses for rabbit host/port handling

This patch changes the rabbit_hosts config generation to work properly
with IPv6 addresses.

Closes-Bug: #1639881
Change-Id: I07cd983880a4a75a051e081dcb96134cb5c6f5e8
This commit is contained in:
Brent Eagles
2016-11-08 01:02:29 -03:30
parent 8a4fc9c18e
commit 274156e5ba
12 changed files with 24 additions and 13 deletions

View File

@@ -67,9 +67,9 @@ class tripleo::profile::base::glance::api (
class { '::glance::api':
stores => $glance_store,
}
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
class { '::glance::notify::rabbitmq' :
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
rabbit_hosts => $rabbit_endpoints,
}
include join(['::glance::backend::', $glance_backend])
}