Fix custom network.name_lower in krb-service-principals
The lowercase network names was hardcoded to 'external', 'internal_api' and 'storage_mgmt'. Use jinja to get the network.name_lower value from network_data.yaml instead so that users can customize the lowercase network name. Closes-Bug: #1830852 Change-Id: Ie9bd482782ff770d90dfc38a585237812ed81c06
This commit is contained in:
parent
1ce6d43d1b
commit
c0fcf8674d
@ -71,11 +71,11 @@ resources:
|
||||
fqdns:
|
||||
{%- for network in networks if network.vip|default(false) and network.name in role.networks %}
|
||||
{%- if network.name == 'External' %}
|
||||
external: {get_param: CloudName}
|
||||
{{network.name_lower}}: {get_param: CloudName}
|
||||
{%- elif network.name == 'InternalApi' %}
|
||||
internal_api: {get_param: CloudNameInternal}
|
||||
{{network.name_lower}}: {get_param: CloudNameInternal}
|
||||
{%- elif network.name == 'StorageMgmt' %}
|
||||
storage_mgmt: {get_param: CloudNameStorageManagement}
|
||||
{{network.name_lower}}: {get_param: CloudNameStorageManagement}
|
||||
{%- else %}
|
||||
{{network.name_lower}}: {get_param: CloudName{{network.name}}}
|
||||
{%- endif %}
|
||||
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixes an issue where deployment would fail if a non-default ``name_lower``
|
||||
is used in network data for one of the networks: ``External``,
|
||||
``InternalApi`` or ``StorageMgmt``.
|
||||
(See `bug: 1830852 <https://bugs.launchpad.net/tripleo/+bug/1830852>`_.)
|
Loading…
Reference in New Issue
Block a user