Merge "Do not set the cell endpoints for regular split-controlplane child stacks"

This commit is contained in:
Zuul 2019-04-16 00:28:24 +00:00 committed by Gerrit Code Review
commit 446669e0c5
1 changed files with 42 additions and 2 deletions

View File

@ -151,6 +151,11 @@ parameters:
description: Maxiumum batch size for creating nodes
type: number
NovaAdditionalCell:
default: false
description: Whether this is an cell additional to the default cell.
type: boolean
# Jinja loop for Role in role_data.yaml
{% for role in roles %}
{{role.name}}ExtraConfig:
@ -284,6 +289,30 @@ conditions:
equals:
- get_param: RedisVirtualFixedIPs
- []
set_default_mysql_cell_internal:
or:
- equals:
- get_param: NovaAdditionalCell
- true
- and:
- equals:
- get_param: NovaAdditionalCell
- false
- equals:
- get_param: [EndpointMapOverride, MysqlCellInternal]
- ''
set_default_nova_vnc_proxy_cell_public:
or:
- equals:
- get_param: NovaAdditionalCell
- true
- and:
- equals:
- get_param: NovaAdditionalCell
- false
- equals:
- get_param: [EndpointMapOverride, NovaVNCProxyCellPublic]
- ''
resources:
@ -390,8 +419,19 @@ resources:
map_merge:
- {get_attr: [EndpointMap, endpoint_map]}
- {get_param: EndpointMapOverride}
- MysqlCellInternal: {get_attr: [EndpointMap, endpoint_map, MysqlInternal]}
- NovaVNCProxyCellPublic: {get_attr: [EndpointMap, endpoint_map, NovaVNCProxyPublic]}
# For parent stack we must set these to the local endpoints
# For split-controlplane stacks that are nova cells we must set
# these to the local endpoints
# For split-controlplane stacks that are not nova cells we should
# take these from EndpointMapOverride (i.e the parent stack)
- if:
- set_default_mysql_cell_internal
- MysqlCellInternal: {get_attr: [EndpointMap, endpoint_map, MysqlInternal]}
- {}
- if:
- set_default_nova_vnc_proxy_cell_public
- NovaVNCProxyCellPublic: {get_attr: [EndpointMap, endpoint_map, NovaVNCProxyPublic]}
- {}
SshKnownHostsConfig:
type: OS::TripleO::Ssh::KnownHostsConfig