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:
parent
8a4fc9c18e
commit
274156e5ba
@ -49,8 +49,9 @@ class tripleo::profile::base::aodh (
|
||||
}
|
||||
|
||||
if $step >= 4 or ($step >= 3 and $sync_db) {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::aodh' :
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
include ::aodh::auth
|
||||
include ::aodh::config
|
||||
|
@ -38,8 +38,9 @@ class tripleo::profile::base::ceilometer (
|
||||
) {
|
||||
|
||||
if $step >= 3 {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::ceilometer' :
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
include ::ceilometer::config
|
||||
}
|
||||
|
@ -52,8 +52,9 @@ class tripleo::profile::base::cinder (
|
||||
}
|
||||
|
||||
if $step >= 4 or ($step >= 3 and $sync_db) {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::cinder' :
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
include ::cinder::config
|
||||
}
|
||||
|
@ -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])
|
||||
}
|
||||
|
@ -62,9 +62,10 @@ class tripleo::profile::base::heat (
|
||||
}
|
||||
|
||||
if $step >= 4 {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::heat' :
|
||||
notification_driver => $notification_driver,
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
include ::heat::config
|
||||
include ::heat::cors
|
||||
|
@ -48,9 +48,10 @@ class tripleo::profile::base::ironic (
|
||||
}
|
||||
|
||||
if $step >= 4 or ($step >= 3 and $sync_db) {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::ironic':
|
||||
sync_db => $sync_db,
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
|
||||
include ::ironic::cors
|
||||
|
@ -143,10 +143,11 @@ class tripleo::profile::base::keystone (
|
||||
}
|
||||
|
||||
if $step >= 4 or ( $step >= 3 and $sync_db ) {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::keystone':
|
||||
sync_db => $sync_db,
|
||||
enable_bootstrap => $sync_db,
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
|
||||
include ::keystone::config
|
||||
|
@ -47,8 +47,9 @@ class tripleo::profile::base::manila (
|
||||
}
|
||||
|
||||
if $step >= 4 or ($step >= 3 and $sync_db) {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::manila' :
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
include ::manila::config
|
||||
}
|
||||
|
@ -48,8 +48,9 @@ class tripleo::profile::base::mistral (
|
||||
}
|
||||
|
||||
if $step >= 4 or ($step >= 3 and $sync_db) {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::mistral':
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
include ::mistral::config
|
||||
include ::mistral::client
|
||||
|
@ -36,8 +36,9 @@ class tripleo::profile::base::neutron (
|
||||
$rabbit_port = hiera('neutron::rabbit_port', 5672),
|
||||
) {
|
||||
if $step >= 3 {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::neutron' :
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
include ::neutron::config
|
||||
}
|
||||
|
@ -68,8 +68,9 @@ class tripleo::profile::base::nova (
|
||||
}
|
||||
|
||||
if hiera('step') >= 4 or (hiera('step') >= 3 and $sync_db) {
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::nova' :
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
include ::nova::config
|
||||
class { '::nova::cache':
|
||||
|
@ -47,9 +47,10 @@ class tripleo::profile::base::sahara (
|
||||
}
|
||||
|
||||
if $step >= 4 or ($step >= 3 and $sync_db){
|
||||
$rabbit_endpoints = suffix(any2array(normalize_ip_for_uri($rabbit_hosts)), ":${rabbit_port}")
|
||||
class { '::sahara':
|
||||
sync_db => $sync_db,
|
||||
rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}")
|
||||
rabbit_hosts => $rabbit_endpoints,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user