ade5bfa302
By default, Ansible injects a variable for every fact, prefixed with ansible_. This can result in a large number of variables for each host, which at scale can incur a performance penalty. Ansible provides a configuration option [0] that can be set to False to prevent this injection of facts. In this case, facts should be referenced via ansible_facts.<fact>. This change updates all references to Ansible facts within Kolla Ansible from using individual fact variables to using the items in the ansible_facts dictionary. This allows users to disable fact variable injection in their Ansible configuration, which may provide some performance improvement. This change disables fact variable injection in the ansible configuration used in CI, to catch any attempts to use the injected variables. [0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars Change-Id: I7e9d5c9b8b9164d4aee3abb4e37c8f28d98ff5d1 Partially-Implements: blueprint performance-improvements
169 lines
7.1 KiB
YAML
169 lines
7.1 KiB
YAML
---
|
|
project_name: "magnum"
|
|
|
|
magnum_services:
|
|
magnum-api:
|
|
container_name: magnum_api
|
|
group: magnum-api
|
|
enabled: true
|
|
image: "{{ magnum_api_image_full }}"
|
|
environment:
|
|
DUMMY_ENVIRONMENT: kolla_useless_env
|
|
volumes: "{{ magnum_api_default_volumes + magnum_api_extra_volumes }}"
|
|
dimensions: "{{ magnum_api_dimensions }}"
|
|
healthcheck: "{{ magnum_api_healthcheck }}"
|
|
haproxy:
|
|
magnum_api:
|
|
enabled: "{{ enable_magnum }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ magnum_api_port }}"
|
|
magnum_api_external:
|
|
enabled: "{{ enable_magnum }}"
|
|
mode: "http"
|
|
external: true
|
|
port: "{{ magnum_api_port }}"
|
|
magnum-conductor:
|
|
container_name: magnum_conductor
|
|
group: magnum-conductor
|
|
enabled: true
|
|
image: "{{ magnum_conductor_image_full }}"
|
|
environment: "{{ magnum_conductor_container_proxy }}"
|
|
volumes: "{{ magnum_conductor_default_volumes + magnum_conductor_extra_volumes }}"
|
|
dimensions: "{{ magnum_conductor_dimensions }}"
|
|
healthcheck: "{{ magnum_conductor_healthcheck }}"
|
|
|
|
|
|
####################
|
|
# Database
|
|
####################
|
|
magnum_database_name: "magnum"
|
|
magnum_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}magnum{% endif %}"
|
|
magnum_database_address: "{{ database_address | put_address_in_context('url') }}:{{ database_port }}"
|
|
|
|
|
|
####################
|
|
# Magnum
|
|
####################
|
|
enable_cluster_user_trust: False
|
|
# The default cinder volume type to be used for container storage volume in clusters
|
|
# that specify the docker-volume-size option. For example gp1, io1 etc
|
|
default_docker_volume_type: ""
|
|
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
magnum_install_type: "{{ kolla_install_type }}"
|
|
magnum_tag: "{{ openstack_tag }}"
|
|
|
|
magnum_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ magnum_install_type }}-magnum-api"
|
|
magnum_api_tag: "{{ magnum_tag }}"
|
|
magnum_api_image_full: "{{ magnum_api_image }}:{{ magnum_api_tag }}"
|
|
|
|
magnum_conductor_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ magnum_install_type }}-magnum-conductor"
|
|
magnum_conductor_tag: "{{ magnum_tag }}"
|
|
magnum_conductor_image_full: "{{ magnum_conductor_image }}:{{ magnum_conductor_tag }}"
|
|
|
|
magnum_api_dimensions: "{{ default_container_dimensions }}"
|
|
magnum_conductor_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
magnum_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
magnum_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
magnum_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
magnum_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
magnum_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ magnum_api_port }}"]
|
|
magnum_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
magnum_api_healthcheck:
|
|
interval: "{{ magnum_api_healthcheck_interval }}"
|
|
retries: "{{ magnum_api_healthcheck_retries }}"
|
|
start_period: "{{ magnum_api_healthcheck_start_period }}"
|
|
test: "{% if magnum_api_enable_healthchecks | bool %}{{ magnum_api_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
timeout: "{{ magnum_api_healthcheck_timeout }}"
|
|
|
|
magnum_conductor_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
magnum_conductor_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
magnum_conductor_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
magnum_conductor_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
magnum_conductor_healthcheck_test: ["CMD-SHELL", "healthcheck_port magnum-conductor {{ om_rpc_port }}"]
|
|
magnum_conductor_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
magnum_conductor_healthcheck:
|
|
interval: "{{ magnum_conductor_healthcheck_interval }}"
|
|
retries: "{{ magnum_conductor_healthcheck_retries }}"
|
|
start_period: "{{ magnum_conductor_healthcheck_start_period }}"
|
|
test: "{% if magnum_conductor_enable_healthchecks | bool %}{{ magnum_conductor_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
timeout: "{{ magnum_conductor_healthcheck_timeout }}"
|
|
|
|
magnum_api_default_volumes:
|
|
- "{{ node_config_directory }}/magnum-api/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
|
- "{{ kolla_dev_repos_directory ~ '/magnum/magnum:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/magnum' if magnum_dev_mode | bool else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
magnum_conductor_default_volumes:
|
|
- "{{ node_config_directory }}/magnum-conductor/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
|
- "magnum:/var/lib/magnum/"
|
|
- "{{ kolla_dev_repos_directory ~ '/magnum/magnum:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/magnum' if magnum_dev_mode | bool else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
magnum_extra_volumes: "{{ default_extra_volumes }}"
|
|
magnum_api_extra_volumes: "{{ magnum_extra_volumes }}"
|
|
magnum_conductor_extra_volumes: "{{ magnum_extra_volumes }}"
|
|
|
|
magnum_conductor_container_proxy: "{{ container_proxy }}"
|
|
|
|
####################
|
|
# OpenStack
|
|
####################
|
|
magnum_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ magnum_api_port }}/v1"
|
|
magnum_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ magnum_api_port }}/v1"
|
|
magnum_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ magnum_api_port }}/v1"
|
|
|
|
magnum_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
magnum_keystone_user: "magnum"
|
|
magnum_trustee_domain_admin: "magnum_trustee_domain_admin"
|
|
magnum_trustee_domain: "magnum"
|
|
|
|
openstack_magnum_auth: "{{ openstack_auth }}"
|
|
|
|
|
|
####################
|
|
# Kolla
|
|
####################
|
|
magnum_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
magnum_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
magnum_dev_mode: "{{ kolla_dev_mode }}"
|
|
magnum_source_version: "{{ kolla_source_version }}"
|
|
|
|
|
|
####################
|
|
# Notifications
|
|
####################
|
|
magnum_notification_topics:
|
|
- name: notifications
|
|
enabled: "{{ enable_ceilometer | bool }}"
|
|
|
|
magnum_enabled_notification_topics: "{{ magnum_notification_topics | selectattr('enabled', 'equalto', true) | list }}"
|
|
|
|
|
|
####################
|
|
# Keystone
|
|
####################
|
|
magnum_ks_services:
|
|
- name: "magnum"
|
|
type: "container-infra"
|
|
description: "Container Infrastructure Management Service"
|
|
endpoints:
|
|
- {'interface': 'admin', 'url': '{{ magnum_admin_endpoint }}'}
|
|
- {'interface': 'internal', 'url': '{{ magnum_internal_endpoint }}'}
|
|
- {'interface': 'public', 'url': '{{ magnum_public_endpoint }}'}
|
|
|
|
magnum_ks_users:
|
|
- project: "service"
|
|
user: "{{ magnum_keystone_user }}"
|
|
password: "{{ magnum_keystone_password }}"
|
|
role: "admin"
|