You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.7 KiB
56 lines
1.7 KiB
heat_template_version: wallaby |
|
|
|
parameters: |
|
# Set these via parameter defaults to configure external VIPs |
|
ControlPlaneIP: |
|
default: '' |
|
type: string |
|
{%- for network in networks if network.vip|default(false) and network.enabled|default(true) %} |
|
{{network.name}}NetworkVip: |
|
default: '' |
|
type: string |
|
{%- endfor %} |
|
# The following are unused in this template |
|
ControlPlaneIp: |
|
default: '' |
|
type: string |
|
ControlPlaneSubnetCidr: # Here for compatibility with ctlplane_vip.yaml |
|
default: '' |
|
description: > |
|
The subnet CIDR of the control plane network. (The parameter is |
|
automatically resolved from the ctlplane subnet's cidr attribute.) |
|
type: string |
|
{%- for network in networks if network.vip|default(false) and network.enabled|default(true) %} |
|
{{network.name}}Ip: |
|
default: '' |
|
type: string |
|
{{network.name}}IpUri: |
|
default: '' |
|
type: string |
|
description: IP address with brackets in case of IPv6 |
|
{%- endfor %} |
|
|
|
outputs: |
|
net_ip_map: |
|
description: > |
|
A Hash containing a mapping of network names to assigned IPs |
|
for a specific machine. |
|
value: |
|
ctlplane: {get_param: ControlPlaneIP} |
|
ctlplane_uri: |
|
str_replace: |
|
template: |
|
make_url: |
|
host: {get_param: ControlPlaneIP} |
|
params: |
|
//: '' |
|
{%- for network in networks if network.vip|default(false) and network.enabled|default(true) %} |
|
{{network.name_lower}}: {get_param: {{network.name}}NetworkVip} |
|
{{network.name_lower}}_uri: |
|
str_replace: |
|
template: |
|
make_url: |
|
host: {get_param: {{network.name}}NetworkVip} |
|
params: |
|
//: '' |
|
{%- endfor %}
|
|
|