aboutsummaryrefslogtreecommitdiffstats
path: root/network/ports/net_vip_map_external.j2.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-08-16 15:30:29 +0000
committerGerrit Code Review <review@openstack.org>2017-08-16 15:30:29 +0000
commit0c6437eb5be2c13c16efcbb66b5ebfef0dc5315b (patch)
treeed3169b06698001fcd09616716a20f654057463f /network/ports/net_vip_map_external.j2.yaml
parentb32d1c145b48d24c237d5a16911c6bd6d6025d83 (diff)
parentb19b88bd1c9944aec1ba96e6d8b99099d54a95f0 (diff)
Merge "Render VIPs dynamically based on network_data.yaml"
Diffstat (limited to 'network/ports/net_vip_map_external.j2.yaml')
-rw-r--r--network/ports/net_vip_map_external.j2.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/network/ports/net_vip_map_external.j2.yaml b/network/ports/net_vip_map_external.j2.yaml
new file mode 100644
index 0000000..b17f48b
--- /dev/null
+++ b/network/ports/net_vip_map_external.j2.yaml
@@ -0,0 +1,40 @@
+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: {get_param: {{network.name}}NetworkVip}
+{%- endfor %}