aboutsummaryrefslogtreecommitdiffstats
path: root/network/ports/net_vip_map_external_v6.j2.yaml
blob: 5eff73c11824b1643d0754ca7be34903832943f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
heat_template_version: pike

parameters:
  # Set these via parameter defaults to configure external VIPs
  ControlPlaneIP:
    default: ''
    type: string
{%- for network in networks if network.vip|default(false) %}
  {{network.name}}NetworkVip:
    default: ''
    type: string
{%- endfor %}
  # The following are unused in this template
  ControlPlaneIp:
    default: ''
    type: string
{%- for network in networks if network.vip|default(false) %}
  {{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}
{%- for network in networks if network.vip|default(false) %}
      {{network.name_lower}}: {get_param: {{network.name}}NetworkVip}
{%- endfor %}
      ctlplane_uri: {get_param: ControlPlaneIP}
{%- for network in networks if network.vip|default(false) %}
      {{network.name_lower}}_uri:
        list_join:
          - ''
          - - '['
            - {get_param: {{network.name}}NetworkVip}
            - ']'
{%- endfor %}