2020-02-18 12:47:28 +00:00
|
|
|
[Global]
|
|
|
|
auth-url="{{ external_openstack_auth_url }}"
|
2021-09-27 08:14:22 +00:00
|
|
|
{% if external_openstack_application_credential_id == "" and external_openstack_application_credential_name == "" %}
|
2020-02-18 12:47:28 +00:00
|
|
|
username="{{ external_openstack_username }}"
|
|
|
|
password="{{ external_openstack_password }}"
|
2020-08-31 10:30:28 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_application_credential_id is defined and external_openstack_application_credential_id != "" %}
|
|
|
|
application-credential-id={{ external_openstack_application_credential_id }}
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_application_credential_name is defined and external_openstack_application_credential_name != "" %}
|
|
|
|
application-credential-name={{ external_openstack_application_credential_name }}
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_application_credential_secret is defined and external_openstack_application_credential_secret != "" %}
|
|
|
|
application-credential-secret={{ external_openstack_application_credential_secret }}
|
|
|
|
{% endif %}
|
2020-02-18 12:47:28 +00:00
|
|
|
region="{{ external_openstack_region }}"
|
|
|
|
{% if external_openstack_tenant_id is defined and external_openstack_tenant_id != "" %}
|
|
|
|
tenant-id="{{ external_openstack_tenant_id }}"
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_tenant_name is defined and external_openstack_tenant_name != "" %}
|
|
|
|
tenant-name="{{ external_openstack_tenant_name }}"
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_domain_name is defined and external_openstack_domain_name != "" %}
|
|
|
|
domain-name="{{ external_openstack_domain_name }}"
|
|
|
|
{% elif external_openstack_domain_id is defined and external_openstack_domain_id != "" %}
|
|
|
|
domain-id ="{{ external_openstack_domain_id }}"
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_cacert is defined and external_openstack_cacert != "" %}
|
|
|
|
ca-file="{{ kube_config_dir }}/external-openstack-cacert.pem"
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
[LoadBalancer]
|
2020-04-24 08:54:07 +00:00
|
|
|
create-monitor={{ external_openstack_lbaas_create_monitor }}
|
|
|
|
monitor-delay={{ external_openstack_lbaas_monitor_delay }}
|
|
|
|
monitor-timeout={{ external_openstack_lbaas_monitor_timeout }}
|
|
|
|
monitor-max-retries={{ external_openstack_lbaas_monitor_max_retries }}
|
2020-02-18 12:47:28 +00:00
|
|
|
{% if external_openstack_lbaas_method is defined %}
|
|
|
|
lb-method={{ external_openstack_lbaas_method }}
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_lbaas_network_id is defined %}
|
|
|
|
network-id={{ external_openstack_lbaas_network_id }}
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_lbaas_subnet_id is defined %}
|
|
|
|
subnet-id={{ external_openstack_lbaas_subnet_id }}
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_lbaas_floating_network_id is defined %}
|
|
|
|
floating-network-id={{ external_openstack_lbaas_floating_network_id }}
|
|
|
|
{% endif %}
|
2020-02-26 21:03:19 +00:00
|
|
|
{% if external_openstack_lbaas_floating_subnet_id is defined %}
|
2020-02-18 12:47:28 +00:00
|
|
|
floating-subnet-id={{ external_openstack_lbaas_floating_subnet_id }}
|
|
|
|
{% endif %}
|
2020-02-26 21:03:19 +00:00
|
|
|
{% if external_openstack_lbaas_manage_security_groups is defined %}
|
|
|
|
manage-security-groups={{ external_openstack_lbaas_manage_security_groups }}
|
|
|
|
{% endif %}
|
|
|
|
{% if external_openstack_lbaas_internal_lb is defined %}
|
2020-03-03 14:45:38 +00:00
|
|
|
internal-lb={{ external_openstack_lbaas_internal_lb }}
|
2020-02-26 21:03:19 +00:00
|
|
|
{% endif %}
|
2020-09-21 14:04:32 +00:00
|
|
|
{% if external_openstack_lbaas_provider is defined %}
|
|
|
|
lb-provider={{ external_openstack_lbaas_provider }}
|
2021-02-25 19:25:25 +00:00
|
|
|
use-octavia={{ external_openstack_lbaas_use_octavia }}
|
2020-09-21 14:04:32 +00:00
|
|
|
{% else %}
|
2020-04-29 18:30:25 +00:00
|
|
|
lb-provider=octavia
|
2020-09-21 14:04:32 +00:00
|
|
|
use-octavia=true
|
2020-04-29 18:30:25 +00:00
|
|
|
{% endif %}
|
2021-05-04 07:33:11 +00:00
|
|
|
{% if external_openstack_enable_ingress_hostname is defined %}
|
|
|
|
enable-ingress-hostname={{ external_openstack_enable_ingress_hostname | bool }}
|
|
|
|
{% endif %}
|
2020-05-18 09:31:36 +00:00
|
|
|
|
|
|
|
[Networking]
|
|
|
|
ipv6-support-disabled={{ external_openstack_network_ipv6_disabled | string | lower }}
|
|
|
|
{% for network_name in external_openstack_network_internal_networks %}
|
|
|
|
internal-network-name="{{ network_name }}"
|
|
|
|
{% endfor %}
|
|
|
|
{% for network_name in external_openstack_network_public_networks %}
|
|
|
|
public-network-name="{{ network_name }}"
|
|
|
|
{% endfor %}
|
2020-07-01 11:52:17 +00:00
|
|
|
|
|
|
|
[Metadata]
|
|
|
|
{% if external_openstack_metadata_search_order is defined %}
|
|
|
|
search-order="{{ external_openstack_metadata_search_order }}"
|
2020-09-21 14:04:32 +00:00
|
|
|
{% endif %}
|