2017-05-18 08:20:14 -07:00
|
|
|
---
|
2022-02-21 06:33:41 +00:00
|
|
|
{% if ansible_os_family == 'Debian' or ansible_facts.distribution == "openEuler" %}
|
|
|
|
# Force the use of python3 on Debian, Ubuntu and openEuler remote hosts. These distros
|
2020-03-16 16:18:42 +00:00
|
|
|
# typically have an unversioned Python interpreter which links to python2.7.
|
|
|
|
ansible_python_interpreter: /usr/bin/python3
|
|
|
|
{% endif %}
|
|
|
|
|
2017-10-01 23:21:38 +08:00
|
|
|
kolla_base_distro: "{{ base_distro }}"
|
2022-04-11 12:41:47 +02:00
|
|
|
# Zed dropped install_type so we have it only on upgrades
|
|
|
|
{% if is_upgrade %}
|
2017-10-01 23:21:38 +08:00
|
|
|
kolla_install_type: "{{ install_type }}"
|
2022-04-11 12:41:47 +02:00
|
|
|
{% endif %}
|
2018-11-07 19:24:26 +01:00
|
|
|
network_interface: "{{ api_interface_name }}"
|
2019-09-11 20:47:00 +02:00
|
|
|
network_address_family: "{{ address_family }}"
|
2019-07-12 17:15:42 +02:00
|
|
|
docker_restart_policy: "no"
|
2019-09-18 10:35:29 +01:00
|
|
|
docker_custom_config:
|
|
|
|
debug: true
|
|
|
|
registry-mirrors:
|
|
|
|
- {{ infra_dockerhub_mirror }}
|
2022-02-21 06:33:41 +00:00
|
|
|
{% if ansible_facts.distribution == "openEuler" %}
|
|
|
|
exec-opts: ["native.umask=normal"]
|
|
|
|
{% endif %}
|
2017-05-18 08:20:14 -07:00
|
|
|
|
2020-08-06 15:46:06 +02:00
|
|
|
{% if kolla_python_version is defined and not is_previous_release %}
|
|
|
|
distro_python_version: "{{ kolla_python_version }}"
|
|
|
|
{% endif %}
|
|
|
|
|
2020-02-14 11:44:49 +01:00
|
|
|
# MariaDB/Galera - fine tune gmcast.peer_timeout
|
|
|
|
mariadb_wsrep_extra_provider_options:
|
|
|
|
- "gmcast.peer_timeout=PT15S"
|
|
|
|
|
2020-06-14 12:03:32 +02:00
|
|
|
nova_compute_virt_type: "{{ virt_type }}"
|
|
|
|
|
2019-11-20 14:25:16 +01:00
|
|
|
enable_openstack_core: "{{ openstack_core_enabled }}"
|
|
|
|
enable_horizon: "{{ dashboard_enabled }}"
|
|
|
|
enable_heat: "{{ openstack_core_tested }}"
|
|
|
|
|
|
|
|
{% if scenario != 'bifrost' %}
|
2019-08-14 14:54:10 +01:00
|
|
|
kolla_internal_vip_address: "{{ kolla_internal_vip_address }}"
|
2020-02-18 20:46:57 +01:00
|
|
|
neutron_external_interface: "{{ neutron_external_interface_name }}"
|
2018-11-07 19:24:26 +01:00
|
|
|
openstack_logging_debug: "True"
|
2021-03-08 13:18:17 +01:00
|
|
|
nova_libvirt_logging_debug: "False"
|
2018-11-07 19:24:26 +01:00
|
|
|
openstack_service_workers: "1"
|
2021-02-23 09:30:11 +00:00
|
|
|
openstack_service_rpc_workers: "1"
|
2018-03-05 14:33:04 +00:00
|
|
|
{% endif %}
|
2017-05-18 08:20:14 -07:00
|
|
|
|
2018-11-08 17:18:53 +00:00
|
|
|
{% if need_build_image and not is_previous_release %}
|
2017-05-18 08:20:14 -07:00
|
|
|
# NOTE(Jeffrey4l): use different a docker namespace name in case it pull image from hub.docker.io when deplying
|
|
|
|
docker_namespace: "lokolla"
|
2019-09-11 20:47:00 +02:00
|
|
|
# NOTE(yoctozepto): use hostname or FQDN to be compatible between IPv4 and IPv6
|
|
|
|
# docker does not support referencing registry via an IPv6 address
|
|
|
|
# see: https://github.com/moby/moby/issues/39033
|
|
|
|
docker_registry: "primary:4000"
|
2021-09-10 07:30:03 +02:00
|
|
|
docker_registry_insecure: yes
|
2020-01-09 17:03:28 +00:00
|
|
|
openstack_tag: "{{ build_image_tag }}"
|
2017-11-15 10:12:54 +08:00
|
|
|
{% else %}
|
2021-03-18 19:01:33 +00:00
|
|
|
# use the published images from a site mirror of quay.io
|
|
|
|
docker_registry: "{{ zuul_site_mirror_fqdn }}:4447"
|
2021-09-10 12:56:58 +00:00
|
|
|
docker_registry_insecure: no
|
2021-03-18 19:01:33 +00:00
|
|
|
docker_namespace: openstack.kolla
|
2020-04-09 16:27:11 +02:00
|
|
|
{% if docker_image_tag_suffix %}
|
|
|
|
openstack_tag_suffix: "{{ docker_image_tag_suffix }}"
|
|
|
|
{% endif %}
|
2019-07-01 11:12:58 +00:00
|
|
|
{% if need_build_image and is_previous_release %}
|
|
|
|
# NOTE(mgoddard): Ensure that the insecure local registry is trusted, since it
|
|
|
|
# will be the source of images during the upgrade.
|
2019-07-01 18:45:30 +02:00
|
|
|
# NOTE(yoctozepto): this is required here for CI because we run templating
|
2019-09-18 11:03:12 +02:00
|
|
|
# of docker systemd command only once
|
2019-09-11 20:47:00 +02:00
|
|
|
docker_custom_option: "--insecure-registry primary:4000"
|
2019-07-01 11:12:58 +00:00
|
|
|
{% endif %}
|
2017-11-15 10:12:54 +08:00
|
|
|
{% endif %}
|
2018-01-16 11:14:54 +07:00
|
|
|
|
2018-04-30 15:17:27 +00:00
|
|
|
{% if scenario == "zun" %}
|
|
|
|
enable_zun: "yes"
|
|
|
|
enable_kuryr: "yes"
|
2018-11-12 15:09:31 +01:00
|
|
|
enable_etcd: "yes"
|
2019-08-14 13:14:31 +02:00
|
|
|
docker_configure_for_zun: "yes"
|
2020-02-17 16:45:33 +00:00
|
|
|
containerd_configure_for_zun: "yes"
|
2019-10-20 22:21:04 +00:00
|
|
|
enable_cinder: "yes"
|
|
|
|
# lvm backup driver for cinder-backup does not exist
|
|
|
|
enable_cinder_backup: "no"
|
|
|
|
enable_cinder_backend_lvm: "yes"
|
2018-04-30 15:17:27 +00:00
|
|
|
{% endif %}
|
2018-11-07 18:16:32 +01:00
|
|
|
|
2019-11-27 18:16:03 +01:00
|
|
|
{% if scenario == "swift" %}
|
|
|
|
enable_swift: "yes"
|
|
|
|
{% endif %}
|
|
|
|
|
2018-11-07 18:16:32 +01:00
|
|
|
{% if scenario == "scenario_nfv" %}
|
|
|
|
enable_tacker: "yes"
|
|
|
|
enable_neutron_sfc: "yes"
|
|
|
|
enable_mistral: "yes"
|
|
|
|
enable_redis: "yes"
|
|
|
|
enable_barbican: "yes"
|
2019-11-20 14:25:16 +01:00
|
|
|
enable_heat: "yes"
|
2020-11-30 20:09:15 +01:00
|
|
|
# NOTE(yoctozepto): see https://bugs.launchpad.net/kolla-ansible/+bug/1906299
|
|
|
|
enable_aodh: "yes"
|
2018-11-07 18:16:32 +01:00
|
|
|
{% endif %}
|
2018-05-16 13:36:38 +01:00
|
|
|
|
|
|
|
{% if scenario == "ironic" %}
|
|
|
|
enable_ironic: "yes"
|
2021-11-08 21:23:21 +03:00
|
|
|
ironic_dnsmasq_dhcp_ranges:
|
|
|
|
- range: "10.42.0.2,10.42.0.254,255.255.255.0"
|
2018-05-16 13:36:38 +01:00
|
|
|
{% endif %}
|
2018-11-07 09:09:04 +07:00
|
|
|
|
|
|
|
{% if scenario == "masakari" %}
|
|
|
|
enable_masakari: "yes"
|
|
|
|
{% endif %}
|
2019-08-19 15:52:46 +01:00
|
|
|
|
|
|
|
{% if scenario == "cells" %}
|
|
|
|
enable_cells: "yes"
|
2021-01-13 13:52:32 +00:00
|
|
|
enable_proxysql: "yes"
|
2019-08-19 15:52:46 +01:00
|
|
|
{% endif %}
|
2019-04-25 11:18:35 +01:00
|
|
|
|
|
|
|
{% if scenario == "mariadb" %}
|
2020-03-18 15:15:25 +01:00
|
|
|
enable_fluentd: "yes"
|
2019-04-25 11:18:35 +01:00
|
|
|
enable_mariadb: "yes"
|
|
|
|
enable_memcached: "no"
|
|
|
|
enable_rabbitmq: "no"
|
|
|
|
{% endif %}
|
2019-08-14 09:13:29 +00:00
|
|
|
|
2021-01-19 11:27:59 +01:00
|
|
|
{% if scenario == "cephadm" %}
|
2019-08-14 09:13:29 +00:00
|
|
|
# kolla-ansible vars
|
|
|
|
enable_cinder: "yes"
|
|
|
|
# External Ceph
|
|
|
|
glance_backend_ceph: "yes"
|
|
|
|
cinder_backend_ceph: "yes"
|
|
|
|
nova_backend_ceph: "yes"
|
2021-05-19 11:28:24 +01:00
|
|
|
|
2021-11-09 17:36:55 +00:00
|
|
|
enable_ceph_rgw: "yes"
|
2021-02-19 13:39:06 +00:00
|
|
|
ceph_rgw_hosts:
|
|
|
|
{% for host in hostvars %}
|
|
|
|
- host: {{ host }}
|
|
|
|
ip: {{ hostvars[host]['ansible_host'] }}
|
|
|
|
port: 6780
|
|
|
|
{% endfor %}
|
2019-08-14 09:13:29 +00:00
|
|
|
{% endif %}
|
2020-01-07 09:51:10 -08:00
|
|
|
|
|
|
|
{% if tls_enabled %}
|
|
|
|
kolla_enable_tls_external: "yes"
|
|
|
|
kolla_enable_tls_internal: "yes"
|
|
|
|
kolla_copy_ca_into_containers: "yes"
|
2020-03-19 14:25:07 -07:00
|
|
|
kolla_enable_tls_backend: "yes"
|
2022-09-28 14:04:24 +02:00
|
|
|
{% if base_distro in ["debian", "ubuntu"] %}
|
2020-05-27 14:08:31 -07:00
|
|
|
openstack_cacert: "/etc/ssl/certs/ca-certificates.crt"
|
2020-01-07 09:51:10 -08:00
|
|
|
{% endif %}
|
2022-09-28 14:04:24 +02:00
|
|
|
{% if base_distro in ["centos", "rocky"] %}
|
2020-05-27 14:08:31 -07:00
|
|
|
openstack_cacert: "/etc/pki/tls/certs/ca-bundle.crt"
|
2020-01-07 09:51:10 -08:00
|
|
|
{% endif %}
|
2020-06-04 21:27:24 -07:00
|
|
|
kolla_admin_openrc_cacert: "{% raw %}{{ kolla_certificates_dir }}{% endraw %}/ca/root.crt"
|
2020-11-05 09:08:41 +00:00
|
|
|
rabbitmq_enable_tls: "yes"
|
2022-06-07 06:54:11 +02:00
|
|
|
libvirt_tls: "yes"
|
2020-11-05 09:08:41 +00:00
|
|
|
{% endif %}
|
2020-02-18 09:18:41 +01:00
|
|
|
|
2019-12-20 11:35:35 +01:00
|
|
|
{% if scenario == "ovn" %}
|
|
|
|
neutron_plugin_agent: "ovn"
|
2020-11-09 10:17:10 +01:00
|
|
|
neutron_ovn_distributed_fip: "yes"
|
|
|
|
enable_octavia: "yes"
|
2021-03-29 17:17:32 +02:00
|
|
|
octavia_auto_configure: "no"
|
|
|
|
octavia_provider_drivers: "ovn:OVN provider"
|
|
|
|
octavia_provider_agents: "ovn"
|
2019-12-20 11:35:35 +01:00
|
|
|
{% endif %}
|
2020-07-08 19:32:23 +01:00
|
|
|
|
|
|
|
{% if scenario == "prometheus-efk" %}
|
|
|
|
enable_central_logging: "yes"
|
|
|
|
enable_grafana: "yes"
|
|
|
|
enable_prometheus: "yes"
|
|
|
|
enable_prometheus_openstack_exporter: "no"
|
|
|
|
{% endif %}
|
2019-04-12 11:19:39 +01:00
|
|
|
|
|
|
|
{% if scenario == "magnum" %}
|
2020-09-25 17:54:56 +01:00
|
|
|
enable_designate: "yes"
|
2019-04-12 11:19:39 +01:00
|
|
|
enable_magnum: "yes"
|
2020-11-18 22:53:04 +08:00
|
|
|
enable_trove: "yes"
|
2019-04-12 11:19:39 +01:00
|
|
|
{% endif %}
|
2019-04-30 14:55:57 +00:00
|
|
|
|
|
|
|
{% if scenario == "monasca" %}
|
|
|
|
enable_keystone: "yes"
|
|
|
|
enable_monasca: "yes"
|
|
|
|
enable_rabbitmq: "no"
|
|
|
|
{% endif %}
|
2021-03-03 17:21:37 +08:00
|
|
|
|
|
|
|
{% if scenario == "octavia" %}
|
|
|
|
enable_octavia: "yes"
|
|
|
|
# NOTE(wuchunyang): work around for qemu-kvm 5.1 can not attach second NIC.
|
|
|
|
# more: http://lists.openstack.org/pipermail/openstack-discuss/2021-February/020218.html
|
|
|
|
octavia_amp_flavor:
|
|
|
|
name: "amphora"
|
|
|
|
is_public: no
|
|
|
|
vcpus: 2
|
|
|
|
ram: 1024
|
|
|
|
disk: 5
|
|
|
|
octavia_network_type: "tenant"
|
|
|
|
{% endif %}
|
|
|
|
|
2022-01-01 10:44:48 +00:00
|
|
|
{% if scenario == "venus" %}
|
|
|
|
enable_elasticsearch: "yes"
|
|
|
|
enable_keystone: "yes"
|
|
|
|
enable_venus: "yes"
|
|
|
|
{% endif %}
|