|
@@ -15,9 +15,11 @@ outputs:
|
|
|
description: IPs of the etcds
|
|
|
value: { get_attr: [ etcd, private_ip ] }
|
|
|
|
|
|
+ {% if openshift_openstack_etcd_floating_ip | default(True) | bool %}
|
|
|
etcd_floating_ips:
|
|
|
description: Floating IPs of the etcds
|
|
|
value: { get_attr: [ etcd, floating_ip ] }
|
|
|
+ {% endif %}
|
|
|
|
|
|
master_names:
|
|
|
description: Name of the masters
|
|
@@ -27,9 +29,11 @@ outputs:
|
|
|
description: IPs of the masters
|
|
|
value: { get_attr: [ masters, private_ip ] }
|
|
|
|
|
|
+ {% if openshift_openstack_master_floating_ip | default(True) | bool %}
|
|
|
master_floating_ips:
|
|
|
description: Floating IPs of the masters
|
|
|
value: { get_attr: [ masters, floating_ip ] }
|
|
|
+ {% endif %}
|
|
|
|
|
|
node_names:
|
|
|
description: Name of the nodes
|
|
@@ -39,9 +43,11 @@ outputs:
|
|
|
description: IPs of the nodes
|
|
|
value: { get_attr: [ compute_nodes, private_ip ] }
|
|
|
|
|
|
+ {% if openshift_openstack_app_floating_ip | default(True) | bool %}
|
|
|
node_floating_ips:
|
|
|
description: Floating IPs of the nodes
|
|
|
value: { get_attr: [ compute_nodes, floating_ip ] }
|
|
|
+ {% endif %}
|
|
|
|
|
|
infra_names:
|
|
|
description: Name of the nodes
|
|
@@ -51,9 +57,11 @@ outputs:
|
|
|
description: IPs of the nodes
|
|
|
value: { get_attr: [ infra_nodes, private_ip ] }
|
|
|
|
|
|
+ {% if openshift_openstack_infra_floating_ip | default(True) | bool %}
|
|
|
infra_floating_ips:
|
|
|
description: Floating IPs of the nodes
|
|
|
value: { get_attr: [ infra_nodes, floating_ip ] }
|
|
|
+ {% endif %}
|
|
|
{% endif %}
|
|
|
|
|
|
public_api_ip:
|
|
@@ -631,7 +639,7 @@ resources:
|
|
|
- no_floating
|
|
|
- ''
|
|
|
- {{ openshift_openstack_external_network_name }}
|
|
|
-{% if openshift_openstack_provider_network_name %}
|
|
|
+{% if openshift_openstack_provider_network_name or not openshift_openstack_etcd_floating_ip | default(False) | bool %}
|
|
|
attach_float_net: false
|
|
|
{% endif %}
|
|
|
volume_size: {{ openshift_openstack_etcd_volume_size }}
|
|
@@ -708,7 +716,7 @@ resources:
|
|
|
- no_floating
|
|
|
- ''
|
|
|
- {{ openshift_openstack_external_network_name }}
|
|
|
-{% if openshift_openstack_provider_network_name %}
|
|
|
+{% if openshift_openstack_provider_network_name or not openshift_openstack_load_balencer_floating_ip | default(True) | bool %}
|
|
|
attach_float_net: false
|
|
|
{% endif %}
|
|
|
volume_size: {{ openshift_openstack_lb_volume_size }}
|
|
@@ -791,7 +799,7 @@ resources:
|
|
|
- no_floating
|
|
|
- ''
|
|
|
- {{ openshift_openstack_external_network_name }}
|
|
|
-{% if openshift_openstack_provider_network_name %}
|
|
|
+{% if openshift_openstack_provider_network_name or not openshift_openstack_master_floating_ip | default(False) | bool %}
|
|
|
attach_float_net: false
|
|
|
{% endif %}
|
|
|
volume_size: {{ openshift_openstack_master_volume_size }}
|
|
@@ -866,7 +874,7 @@ resources:
|
|
|
- no_floating
|
|
|
- ''
|
|
|
- {{ openshift_openstack_external_network_name }}
|
|
|
-{% if openshift_openstack_provider_network_name %}
|
|
|
+{% if openshift_openstack_provider_network_name or not openshift_openstack_compute_floating_ip | default(False) | bool %}
|
|
|
attach_float_net: false
|
|
|
{% endif %}
|
|
|
volume_size: {{ openshift_openstack_node_volume_size }}
|
|
@@ -945,7 +953,7 @@ resources:
|
|
|
- no_floating
|
|
|
- ''
|
|
|
- {{ openshift_openstack_external_network_name }}
|
|
|
-{% if openshift_openstack_provider_network_name %}
|
|
|
+{% if openshift_openstack_provider_network_name or not openshift_openstack_infra_floating_ip | default(True) | bool %}
|
|
|
attach_float_net: false
|
|
|
{% endif %}
|
|
|
volume_size: {{ openshift_openstack_infra_volume_size }}
|
|
@@ -1028,6 +1036,7 @@ resources:
|
|
|
|
|
|
|
|
|
{% if openshift_openstack_use_lbaas_load_balancer %}
|
|
|
+ {% if openshift_openstack_load_balencer_floating_ip | default(True) | bool %}
|
|
|
api_lb_floating_ip:
|
|
|
condition: { not: no_floating }
|
|
|
depends_on:
|
|
@@ -1038,13 +1047,14 @@ resources:
|
|
|
properties:
|
|
|
floating_network: {{ openshift_openstack_external_network_name }}
|
|
|
port_id: { get_attr: [api_lb, vip_port_id] }
|
|
|
-
|
|
|
+ {% endif %}
|
|
|
|
|
|
router_lb:
|
|
|
type: OS::{{ openshift_openstack_lbaasv2_provider }}::LoadBalancer
|
|
|
properties:
|
|
|
vip_subnet: { get_resource: subnet }
|
|
|
|
|
|
+ {% if openshift_openstack_load_balencer_floating_ip | default(True) | bool %}
|
|
|
router_lb_floating_ip:
|
|
|
condition: { not: no_floating }
|
|
|
depends_on:
|
|
@@ -1057,6 +1067,7 @@ resources:
|
|
|
properties:
|
|
|
floating_network: {{ openshift_openstack_external_network_name }}
|
|
|
port_id: { get_attr: [router_lb, vip_port_id] }
|
|
|
+ {% endif %}
|
|
|
|
|
|
router_lb_listener_http:
|
|
|
type: OS::{{ openshift_openstack_lbaasv2_provider }}::Listener
|