krb-service-principals support service_net_map_replace
Handle service_net_map_replace in the jinja2 logic so that service_net_map_replace works for both default networks and custom networks. Enables a user either to change 'name_lower' of a network and overriding the ServiceNetMap accordingly, as well as user changeing 'name_lower' and use 'service_net_map_replace' so that the default ServiceNetMap can be used. Related-Bug: #1830852 Change-Id: Iae4341e9e7c888da4dd8d0dedd5ad28b7e0e6c40
This commit is contained in:
parent
281effb780
commit
f708ab7a82
@ -71,13 +71,29 @@ resources:
|
||||
fqdns:
|
||||
{%- for network in networks if network.vip|default(false) and network.name in role.networks %}
|
||||
{%- if network.name == 'External' %}
|
||||
{%- if network.service_net_map_replace is defined %}
|
||||
{{network.service_net_map_replace}}: {get_param: CloudName}
|
||||
{%- else %}
|
||||
{{network.name_lower}}: {get_param: CloudName}
|
||||
{%- endif %}
|
||||
{%- elif network.name == 'InternalApi' %}
|
||||
{%- if network.service_net_map_replace is defined %}
|
||||
{{network.service_net_map_replace}}: {get_param: CloudNameInternal}
|
||||
{%- else %}
|
||||
{{network.name_lower}}: {get_param: CloudNameInternal}
|
||||
{%- endif %}
|
||||
{%- elif network.name == 'StorageMgmt' %}
|
||||
{%- if network.service_net_map_replace is defined %}
|
||||
{{network.service_net_map_replace}}: {get_param: CloudNameStorageManagement}
|
||||
{%- else %}
|
||||
{{network.name_lower}}: {get_param: CloudNameStorageManagement}
|
||||
{%- endif %}
|
||||
{%- else %}
|
||||
{%- if network.service_net_map_replace is defined %}
|
||||
{{network.service_net_map_replace}}: {get_param: CloudNameStorageManagement}
|
||||
{%- else %}
|
||||
{{network.name_lower}}: {get_param: CloudName{{network.name}}}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
ctlplane: {get_param: CloudNameCtlplane}
|
||||
|
Loading…
x
Reference in New Issue
Block a user