2016-11-30 16:45:00 +08:00
|
|
|
---
|
|
|
|
project_name: "octavia"
|
|
|
|
|
2017-01-22 22:28:19 +08:00
|
|
|
octavia_services:
|
|
|
|
octavia-api:
|
|
|
|
container_name: octavia_api
|
|
|
|
group: octavia-api
|
|
|
|
enabled: true
|
|
|
|
image: "{{ octavia_api_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ octavia_api_default_volumes + octavia_api_extra_volumes }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
dimensions: "{{ octavia_api_dimensions }}"
|
2021-03-02 12:11:02 +00:00
|
|
|
healthcheck: "{{ octavia_api_healthcheck }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
haproxy:
|
|
|
|
octavia_api:
|
|
|
|
enabled: "{{ enable_octavia }}"
|
|
|
|
mode: "http"
|
|
|
|
external: false
|
|
|
|
port: "{{ octavia_api_port }}"
|
2021-03-10 21:58:02 -05:00
|
|
|
listen_port: "{{ octavia_api_listen_port }}"
|
|
|
|
tls_backend: "{{ octavia_enable_tls_backend }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
octavia_api_external:
|
|
|
|
enabled: "{{ enable_octavia }}"
|
|
|
|
mode: "http"
|
|
|
|
external: true
|
|
|
|
port: "{{ octavia_api_port }}"
|
2021-03-10 21:58:02 -05:00
|
|
|
listen_port: "{{ octavia_api_listen_port }}"
|
|
|
|
tls_backend: "{{ octavia_enable_tls_backend }}"
|
2020-11-09 10:17:10 +01:00
|
|
|
octavia-driver-agent:
|
|
|
|
container_name: octavia_driver_agent
|
|
|
|
group: octavia-driver-agent
|
|
|
|
enabled: "{{ enable_octavia_driver_agent }}"
|
|
|
|
image: "{{ octavia_driver_agent_image_full }}"
|
|
|
|
volumes: "{{ octavia_driver_agent_default_volumes + octavia_driver_agent_extra_volumes }}"
|
|
|
|
dimensions: "{{ octavia_driver_agent_dimensions }}"
|
2017-01-22 22:28:19 +08:00
|
|
|
octavia-health-manager:
|
|
|
|
container_name: octavia_health_manager
|
|
|
|
group: octavia-health-manager
|
|
|
|
enabled: true
|
|
|
|
image: "{{ octavia_health_manager_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ octavia_health_manager_default_volumes + octavia_health_manager_extra_volumes }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
dimensions: "{{ octavia_health_manager_dimensions }}"
|
2021-03-02 12:11:02 +00:00
|
|
|
healthcheck: "{{ octavia_health_manager_healthcheck }}"
|
2017-01-22 22:28:19 +08:00
|
|
|
octavia-housekeeping:
|
|
|
|
container_name: octavia_housekeeping
|
|
|
|
group: octavia-housekeeping
|
|
|
|
enabled: true
|
|
|
|
image: "{{ octavia_housekeeping_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ octavia_housekeeping_default_volumes + octavia_housekeeping_extra_volumes }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
dimensions: "{{ octavia_housekeeping_dimensions }}"
|
2021-03-02 12:11:02 +00:00
|
|
|
healthcheck: "{{ octavia_housekeeping_healthcheck }}"
|
2017-01-22 22:28:19 +08:00
|
|
|
octavia-worker:
|
|
|
|
container_name: octavia_worker
|
|
|
|
group: octavia-worker
|
|
|
|
enabled: true
|
|
|
|
image: "{{ octavia_worker_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ octavia_worker_default_volumes + octavia_worker_extra_volumes }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
dimensions: "{{ octavia_worker_dimensions }}"
|
2021-03-02 12:11:02 +00:00
|
|
|
healthcheck: "{{ octavia_worker_healthcheck }}"
|
2017-01-22 22:28:19 +08:00
|
|
|
|
2018-01-29 12:47:59 +08:00
|
|
|
octavia_required_roles:
|
|
|
|
- load-balancer_observer
|
|
|
|
- load-balancer_global_observer
|
|
|
|
- load-balancer_member
|
|
|
|
- load-balancer_admin
|
|
|
|
- load-balancer_quota_admin
|
|
|
|
|
2017-01-22 22:28:19 +08:00
|
|
|
|
2016-11-30 16:45:00 +08:00
|
|
|
####################
|
|
|
|
# Database
|
|
|
|
####################
|
|
|
|
octavia_database_name: "octavia"
|
2018-01-14 20:16:43 +02:00
|
|
|
octavia_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}octavia{% endif %}"
|
2019-09-11 20:47:00 +02:00
|
|
|
octavia_database_address: "{{ database_address | put_address_in_context('url') }}:{{ database_port }}"
|
2016-11-30 16:45:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Docker
|
|
|
|
####################
|
2017-06-03 16:00:58 +07:00
|
|
|
octavia_install_type: "{{ kolla_install_type }}"
|
2020-01-09 17:03:28 +00:00
|
|
|
octavia_tag: "{{ openstack_tag }}"
|
2017-06-03 16:00:58 +07:00
|
|
|
|
|
|
|
octavia_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ octavia_install_type }}-octavia-api"
|
|
|
|
octavia_api_tag: "{{ octavia_tag }}"
|
2016-11-30 16:45:00 +08:00
|
|
|
octavia_api_image_full: "{{ octavia_api_image }}:{{ octavia_api_tag }}"
|
|
|
|
|
2020-11-09 10:17:10 +01:00
|
|
|
octavia_driver_agent_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ octavia_install_type }}-octavia-driver-agent"
|
|
|
|
octavia_driver_agent_tag: "{{ octavia_tag }}"
|
|
|
|
octavia_driver_agent_image_full: "{{ octavia_driver_agent_image }}:{{ octavia_driver_agent_tag }}"
|
|
|
|
|
2017-06-03 16:00:58 +07:00
|
|
|
octavia_health_manager_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ octavia_install_type }}-octavia-health-manager"
|
|
|
|
octavia_health_manager_tag: "{{ octavia_tag }}"
|
2016-11-30 16:45:00 +08:00
|
|
|
octavia_health_manager_image_full: "{{ octavia_health_manager_image }}:{{ octavia_health_manager_tag }}"
|
|
|
|
|
2017-06-03 16:00:58 +07:00
|
|
|
octavia_housekeeping_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ octavia_install_type }}-octavia-housekeeping"
|
|
|
|
octavia_housekeeping_tag: "{{ octavia_tag }}"
|
2016-11-30 16:45:00 +08:00
|
|
|
octavia_housekeeping_image_full: "{{ octavia_housekeeping_image }}:{{ octavia_housekeeping_tag }}"
|
|
|
|
|
2017-06-03 16:00:58 +07:00
|
|
|
octavia_worker_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ octavia_install_type }}-octavia-worker"
|
|
|
|
octavia_worker_tag: "{{ octavia_tag }}"
|
2016-11-30 16:45:00 +08:00
|
|
|
octavia_worker_image_full: "{{ octavia_worker_image }}:{{ octavia_worker_tag }}"
|
|
|
|
|
2018-07-18 15:42:15 +05:30
|
|
|
octavia_api_dimensions: "{{ default_container_dimensions }}"
|
2020-11-09 10:17:10 +01:00
|
|
|
octavia_driver_agent_dimensions: "{{ default_container_dimensions }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
octavia_health_manager_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
octavia_housekeeping_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
octavia_worker_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
|
2021-03-02 12:11:02 +00:00
|
|
|
octavia_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
|
|
octavia_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
|
|
octavia_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
|
|
octavia_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
2021-03-10 21:58:02 -05:00
|
|
|
octavia_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if octavia_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ octavia_api_listen_port }}"]
|
2021-03-02 12:11:02 +00:00
|
|
|
octavia_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
|
|
octavia_api_healthcheck:
|
|
|
|
interval: "{{ octavia_api_healthcheck_interval }}"
|
|
|
|
retries: "{{ octavia_api_healthcheck_retries }}"
|
|
|
|
start_period: "{{ octavia_api_healthcheck_start_period }}"
|
|
|
|
test: "{% if octavia_api_enable_healthchecks | bool %}{{ octavia_api_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
|
|
timeout: "{{ octavia_api_healthcheck_timeout }}"
|
|
|
|
|
|
|
|
octavia_health_manager_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
|
|
octavia_health_manager_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
|
|
octavia_health_manager_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
|
|
octavia_health_manager_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
|
|
octavia_health_manager_healthcheck_test: ["CMD-SHELL", "healthcheck_port octavia-health-manager {{ database_port }}"]
|
|
|
|
octavia_health_manager_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
|
|
octavia_health_manager_healthcheck:
|
|
|
|
interval: "{{ octavia_health_manager_healthcheck_interval }}"
|
|
|
|
retries: "{{ octavia_health_manager_healthcheck_retries }}"
|
|
|
|
start_period: "{{ octavia_health_manager_healthcheck_start_period }}"
|
|
|
|
test: "{% if octavia_health_manager_enable_healthchecks | bool %}{{ octavia_health_manager_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
|
|
timeout: "{{ octavia_health_manager_healthcheck_timeout }}"
|
|
|
|
|
|
|
|
octavia_housekeeping_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
|
|
octavia_housekeeping_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
|
|
octavia_housekeeping_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
|
|
octavia_housekeeping_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
|
|
octavia_housekeeping_healthcheck_test: ["CMD-SHELL", "healthcheck_port octavia-housekeeping {{ database_port }}"]
|
|
|
|
octavia_housekeeping_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
|
|
octavia_housekeeping_healthcheck:
|
|
|
|
interval: "{{ octavia_housekeeping_healthcheck_interval }}"
|
|
|
|
retries: "{{ octavia_housekeeping_healthcheck_retries }}"
|
|
|
|
start_period: "{{ octavia_housekeeping_healthcheck_start_period }}"
|
|
|
|
test: "{% if octavia_housekeeping_enable_healthchecks | bool %}{{ octavia_housekeeping_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
|
|
timeout: "{{ octavia_housekeeping_healthcheck_timeout }}"
|
|
|
|
|
|
|
|
octavia_worker_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
|
|
octavia_worker_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
|
|
octavia_worker_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
|
|
octavia_worker_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
|
|
octavia_worker_healthcheck_test: ["CMD-SHELL", "healthcheck_port octavia-worker {{ om_rpc_port }}"]
|
|
|
|
octavia_worker_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
|
|
octavia_worker_healthcheck:
|
|
|
|
interval: "{{ octavia_worker_healthcheck_interval }}"
|
|
|
|
retries: "{{ octavia_worker_healthcheck_retries }}"
|
|
|
|
start_period: "{{ octavia_worker_healthcheck_start_period }}"
|
|
|
|
test: "{% if octavia_worker_enable_healthchecks | bool %}{{ octavia_worker_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
|
|
timeout: "{{ octavia_worker_healthcheck_timeout }}"
|
|
|
|
|
2019-04-09 16:55:20 +08:00
|
|
|
octavia_api_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/octavia-api/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2020-08-10 09:33:00 +01:00
|
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
2020-07-23 20:05:16 +08:00
|
|
|
- "{{ kolla_dev_repos_directory ~ '/octavia/octavia:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/octavia' if octavia_dev_mode | bool else '' }}"
|
2020-11-09 10:17:10 +01:00
|
|
|
- "octavia_driver_agent:/var/run/octavia/"
|
2019-04-09 16:55:20 +08:00
|
|
|
octavia_health_manager_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/octavia-health-manager/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2020-08-10 09:33:00 +01:00
|
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
2020-06-14 23:42:09 +08:00
|
|
|
- "{{ kolla_dev_repos_directory ~ '/octavia/octavia:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/octavia' if octavia_dev_mode | bool else '' }}"
|
2020-11-09 10:17:10 +01:00
|
|
|
octavia_driver_agent_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/octavia-driver-agent/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
|
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
- "{{ kolla_dev_repos_directory ~ '/octavia/octavia:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/octavia' if octavia_dev_mode | bool else '' }}"
|
|
|
|
- "octavia_driver_agent:/var/run/octavia/"
|
2019-04-09 16:55:20 +08:00
|
|
|
octavia_housekeeping_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/octavia-housekeeping/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2020-08-10 09:33:00 +01:00
|
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
2020-06-14 23:42:09 +08:00
|
|
|
- "{{ kolla_dev_repos_directory ~ '/octavia/octavia:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/octavia' if octavia_dev_mode | bool else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
octavia_worker_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/octavia-worker/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2020-08-10 09:33:00 +01:00
|
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
2020-06-14 23:42:09 +08:00
|
|
|
- "{{ kolla_dev_repos_directory ~ '/octavia/octavia:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/octavia' if octavia_dev_mode | bool else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
|
|
|
|
octavia_extra_volumes: "{{ default_extra_volumes }}"
|
|
|
|
octavia_api_extra_volumes: "{{ octavia_extra_volumes }}"
|
2020-11-09 10:17:10 +01:00
|
|
|
octavia_driver_agent_extra_volumes: "{{ octavia_extra_volumes }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
octavia_health_manager_extra_volumes: "{{ octavia_extra_volumes }}"
|
|
|
|
octavia_housekeeping_extra_volumes: "{{ octavia_extra_volumes }}"
|
|
|
|
octavia_worker_extra_volumes: "{{ octavia_extra_volumes }}"
|
2016-11-30 16:45:00 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# OpenStack
|
|
|
|
####################
|
|
|
|
octavia_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
|
|
|
|
octavia_keystone_user: "octavia"
|
|
|
|
|
Switch octavia to use service project in service_auth
Recently a patch [1] was merged to stop adding the octavia user to the
admin project, and remove it on upgrade. However, the octavia
configuration was not updated to use the service project, causing load
balancer creation to fail.
There is also an issue for existing deployments in simply switching to
the service project. While existing load balancers appear to continue to
work, creating new load balancers fails due to the security group
belonging to the admin project. At a minimum, the deployer needs to
create a security group in the service project, and update
'octavia_amp_secgroup_list' to match its ID. Ideally the flavor and
network would also be recreated in the service project, although this
does not seem to impact operation and will result in downtime for
existing Amphorae.
This change adds a new variable, 'octavia_service_auth_project', that
can be used to set the project. The default in Ussuri is 'service',
switching to the new behaviour. For backports of this patch it should be
switched to 'admin' to maintain compatibility.
If a deployer sets 'octavia_service_auth_project' to 'admin', the
octavia user will be assigned the admin role in the admin project, as
was done previously.
Closes-Bug: #1882643
Related-Bug: #1873176
[1] https://review.opendev.org/720243/
Co-Authored-By: Mark Goddard <mark@stackhpc.com>
Change-Id: I1efd0154ebaee69373ae5bccd391ee9c68d09b30
2020-05-12 19:07:30 +08:00
|
|
|
# Project that Octavia will use to interact with other services. Note that in
|
|
|
|
# Train and earlier releases this was "admin".
|
|
|
|
octavia_service_auth_project: "service"
|
|
|
|
|
2016-12-30 15:57:07 +08:00
|
|
|
openstack_octavia_auth: "{{ openstack_auth }}"
|
2018-07-31 19:24:02 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Keystone
|
|
|
|
####################
|
|
|
|
octavia_ks_services:
|
|
|
|
- name: "octavia"
|
|
|
|
type: "load-balancer"
|
|
|
|
description: "Octavia Load Balancing Service"
|
|
|
|
endpoints:
|
|
|
|
- {'interface': 'admin', 'url': '{{ octavia_admin_endpoint }}'}
|
|
|
|
- {'interface': 'internal', 'url': '{{ octavia_internal_endpoint }}'}
|
|
|
|
- {'interface': 'public', 'url': '{{ octavia_public_endpoint }}'}
|
|
|
|
|
|
|
|
octavia_ks_users:
|
|
|
|
- project: "service"
|
|
|
|
user: "{{ octavia_keystone_user }}"
|
|
|
|
password: "{{ octavia_keystone_password }}"
|
|
|
|
role: "admin"
|
2021-03-31 10:51:20 +01:00
|
|
|
# NOTE(mgoddard): The default for the service auth project is service, but
|
|
|
|
# may be customised. Ensure the project exists, and assign the octavia user
|
|
|
|
# the admin role in it.
|
|
|
|
- project: "{{ octavia_service_auth_project }}"
|
|
|
|
user: "{{ octavia_keystone_user }}"
|
|
|
|
password: "{{ octavia_keystone_password }}"
|
|
|
|
role: "admin"
|
2020-06-14 23:42:09 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Kolla
|
|
|
|
####################
|
|
|
|
octavia_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
|
|
octavia_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
|
|
octavia_dev_mode: "{{ kolla_dev_mode }}"
|
|
|
|
octavia_source_version: "{{ kolla_source_version }}"
|
2020-07-09 15:28:50 +08:00
|
|
|
|
|
|
|
#####################
|
|
|
|
# Integration Options
|
|
|
|
#####################
|
|
|
|
octavia_amp_ssh_key_name: "octavia_ssh_key"
|
|
|
|
octavia_amp_listen_port: "9443"
|
|
|
|
octavia_amp_image_tag: "amphora"
|
2020-10-01 17:01:33 +01:00
|
|
|
octavia_network_type: "provider"
|
2020-07-09 15:28:50 +08:00
|
|
|
|
|
|
|
# Load balancer topology options are [ SINGLE, ACTIVE_STANDBY ]
|
|
|
|
octavia_loadbalancer_topology: "SINGLE"
|
|
|
|
|
|
|
|
# OpenStack auth used when registering resources for Octavia.
|
|
|
|
octavia_user_auth:
|
|
|
|
auth_url: "{{ keystone_admin_url }}"
|
|
|
|
username: "octavia"
|
|
|
|
password: "{{ octavia_keystone_password }}"
|
|
|
|
project_name: "{{ octavia_service_auth_project }}"
|
|
|
|
domain_name: "{{ default_project_domain_name }}"
|
|
|
|
|
|
|
|
# Octavia amphora flavor.
|
|
|
|
# See os_nova_flavor for details. Supported parameters:
|
|
|
|
# - disk
|
|
|
|
# - ephemeral (optional)
|
|
|
|
# - extra_specs (optional)
|
|
|
|
# - flavorid (optional)
|
|
|
|
# - is_public (optional)
|
|
|
|
# - name
|
|
|
|
# - ram
|
|
|
|
# - swap (optional)
|
|
|
|
# - vcpus
|
|
|
|
octavia_amp_flavor:
|
|
|
|
name: "amphora"
|
|
|
|
is_public: no
|
|
|
|
vcpus: 1
|
|
|
|
ram: 1024
|
|
|
|
disk: 5
|
|
|
|
|
|
|
|
# Octavia security groups. lb-mgmt-sec-grp is for amphorae.
|
2020-10-01 17:01:33 +01:00
|
|
|
# lb-health-mgr-sec-grp is used for health manager ports.
|
2020-07-09 15:28:50 +08:00
|
|
|
octavia_amp_security_groups:
|
|
|
|
mgmt-sec-grp:
|
|
|
|
name: "lb-mgmt-sec-grp"
|
2020-10-01 17:01:33 +01:00
|
|
|
enabled: true
|
2020-07-09 15:28:50 +08:00
|
|
|
rules:
|
|
|
|
- protocol: icmp
|
|
|
|
- protocol: tcp
|
|
|
|
src_port: 22
|
|
|
|
dst_port: 22
|
|
|
|
- protocol: tcp
|
|
|
|
src_port: "{{ octavia_amp_listen_port }}"
|
|
|
|
dst_port: "{{ octavia_amp_listen_port }}"
|
2020-10-01 17:01:33 +01:00
|
|
|
health-mgr-sec-grp:
|
|
|
|
name: "lb-health-mgr-sec-grp"
|
|
|
|
enabled: "{{ true if octavia_network_type == 'tenant' else false }}"
|
|
|
|
rules:
|
|
|
|
- protocol: udp
|
|
|
|
src_port: "{{ octavia_health_manager_port }}"
|
|
|
|
dst_port: "{{ octavia_health_manager_port }}"
|
2020-07-09 15:28:50 +08:00
|
|
|
|
|
|
|
# Octavia management network.
|
|
|
|
# See os_network and os_subnet for details. Supported parameters:
|
|
|
|
# - external (optional)
|
|
|
|
# - mtu (optional)
|
|
|
|
# - name
|
|
|
|
# - provider_network_type (optional)
|
|
|
|
# - provider_physical_network (optional)
|
|
|
|
# - provider_segmentation_id (optional)
|
|
|
|
# - shared (optional)
|
|
|
|
# - subnet
|
|
|
|
# The subnet parameter has the following supported parameters:
|
|
|
|
# - allocation_pool_start (optional)
|
2021-01-04 15:04:49 +01:00
|
|
|
# - allocation_pool_end (optional)
|
2020-07-09 15:28:50 +08:00
|
|
|
# - cidr
|
|
|
|
# - enable_dhcp (optional)
|
|
|
|
# - gateway_ip (optional)
|
|
|
|
# - name
|
|
|
|
# - no_gateway_ip (optional)
|
2021-01-27 02:39:25 -08:00
|
|
|
# - ip_version (optional)
|
|
|
|
# - ipv6_address_mode (optional)
|
|
|
|
# - ipv6_ra_mode (optional)
|
2020-07-09 15:28:50 +08:00
|
|
|
octavia_amp_network:
|
|
|
|
name: lb-mgmt-net
|
|
|
|
shared: false
|
|
|
|
subnet:
|
|
|
|
name: lb-mgmt-subnet
|
|
|
|
cidr: "{{ octavia_amp_network_cidr }}"
|
|
|
|
no_gateway_ip: yes
|
|
|
|
enable_dhcp: yes
|
|
|
|
|
|
|
|
# Octavia management network subnet CIDR.
|
2021-02-25 14:59:40 +01:00
|
|
|
octavia_amp_network_cidr: 10.1.0.0/24
|
2020-11-09 10:17:10 +01:00
|
|
|
|
|
|
|
# Octavia provider drivers
|
|
|
|
octavia_provider_drivers: "amphora:Amphora provider{% if neutron_plugin_agent == 'ovn'%}, ovn:OVN provider{% endif %}"
|
|
|
|
octavia_provider_agents: "amphora_agent{% if neutron_plugin_agent == 'ovn'%}, ovn{% endif %}"
|
2021-03-10 21:58:02 -05:00
|
|
|
|
|
|
|
####################
|
|
|
|
# TLS
|
|
|
|
####################
|
|
|
|
octavia_enable_tls_backend: "{{ kolla_enable_tls_backend }}"
|