5cf205502d
This allows a deployer to customise their inventory at various levels, by providing a custom inventory template for one or more of the sections of the inventory. * Top level groups define the roles of hosts, e.g. controller or compute. * Components define groups of services, e.g. nova or ironic. * Services define single containers, e.g. nova-compute or ironic-api.
247 lines
8.0 KiB
Plaintext
247 lines
8.0 KiB
Plaintext
---
|
|
###############################################################################
|
|
# Kolla installation.
|
|
|
|
# Type of Kolla control installation. One of 'binary' or 'source'.
|
|
kolla_ctl_install_type: source
|
|
|
|
# URL of Kolla source code repository if type is 'source'.
|
|
kolla_source_url: "https://github.com/stackhpc/kolla"
|
|
|
|
# Version (branch, tag, etc.) of Kolla source code repository if type is
|
|
# 'source'.
|
|
kolla_source_version: "stackhpc-{{ kolla_openstack_release }}"
|
|
|
|
# URL of Kolla Ansible source code repository if type is 'source'.
|
|
kolla_ansible_source_url: "https://github.com/stackhpc/kolla-ansible"
|
|
|
|
# Version (branch, tag, etc.) of Kolla Ansible source code repository if type
|
|
# is 'source'.
|
|
kolla_ansible_source_version: "stackhpc-{{ kolla_openstack_release }}"
|
|
|
|
# Path to virtualenv in which to install kolla.
|
|
kolla_venv: "{{ virtualenv_path ~ '/kolla' }}"
|
|
|
|
###############################################################################
|
|
# Kolla configuration.
|
|
|
|
# Path to Kolla configuration directory.
|
|
kolla_config_path: "{{ lookup('env', 'KOLLA_CONFIG_PATH') | default('/etc/kolla', true) }}"
|
|
|
|
# Path to Kolla node custom configuration directory.
|
|
kolla_node_custom_config_path: "{{ kolla_config_path }}/config"
|
|
|
|
# Kolla base container image distribution.
|
|
kolla_base_distro: "centos"
|
|
|
|
# Kolla installation type: binary or source.
|
|
kolla_install_type: "binary"
|
|
|
|
# Docker namespace to use for Kolla images.
|
|
kolla_docker_namespace: "stackhpc"
|
|
|
|
# Kolla OpenStack release version. This should be a Docker image tag.
|
|
kolla_openstack_release: "4.0.0.1"
|
|
|
|
# Dict mapping names of sources to their definitions for
|
|
# kolla_install_type=source. See kolla.common.config for details.
|
|
# Example:
|
|
# kolla_sources:
|
|
# ironic_base:
|
|
# type: git
|
|
# location: https://github.com/openstack/ironic
|
|
# reference: master
|
|
kolla_sources:
|
|
bifrost-base:
|
|
type: "git"
|
|
location: "{{ kolla_bifrost_source_url }}"
|
|
reference: "{{ kolla_bifrost_source_version }}"
|
|
|
|
###############################################################################
|
|
# Kolla image build configuration.
|
|
|
|
# List of regular expressions matching names of container images to build for
|
|
# the seed.
|
|
seed_container_image_regex_map:
|
|
- regex: bifrost
|
|
enabled: True
|
|
|
|
# List of regular expressions matching names of container images to build for
|
|
# the seed.
|
|
seed_container_image_regexes: "{{ seed_container_image_regex_map | selectattr('enabled') | map(attribute='regex') | list }}"
|
|
|
|
# List of container image sets for the seed. This is used when building
|
|
# container images to determine which images to build.
|
|
seed_container_image_sets:
|
|
- type: source
|
|
regexes: "{{ seed_container_image_regexes | join(' ') }}"
|
|
|
|
# List of regular expressions matching names of container images to build for
|
|
# controllers.
|
|
controller_container_image_regex_map:
|
|
- regex: barbican
|
|
enabled: "{{ kolla_enable_barbican | bool }}"
|
|
- regex: cinder
|
|
enabled: True
|
|
- regex: cron
|
|
enabled: True
|
|
- regex: dnsmasq
|
|
enabled: True
|
|
- regex: fluentd
|
|
enabled: True
|
|
- regex: glance
|
|
enabled: "{{ kolla_enable_glance | bool }}"
|
|
- regex: haproxy
|
|
enabled: True
|
|
- regex: heat
|
|
enabled: True
|
|
- regex: horizon
|
|
enabled: True
|
|
- regex: ironic
|
|
enabled: "{{ kolla_enable_ironic | bool }}"
|
|
- regex: iscsid
|
|
enabled: True
|
|
- regex: keepalived
|
|
enabled: True
|
|
- regex: keystone
|
|
enabled: True
|
|
- regex: kolla-toolbox
|
|
enabled: True
|
|
- regex: magnum
|
|
enabled: "{{ kolla_enable_magnum | bool }}"
|
|
- regex: murano
|
|
enabled: "{{ kolla_enable_murano | bool }}"
|
|
- regex: mariadb
|
|
enabled: True
|
|
- regex: memcached
|
|
enabled: True
|
|
- regex: neutron-server
|
|
enabled: True
|
|
# Neutron SFC agent not currently supported on CentOS binary builds.
|
|
- regex: "neutron-\\(dhcp\\|l3\\|metadata\\|openvswitch\\)-agent"
|
|
enabled: True
|
|
- regex: nova
|
|
enabled: True
|
|
- regex: openvswitch
|
|
enabled: True
|
|
- regex: rabbitmq
|
|
enabled: True
|
|
- regex: sahara
|
|
enabled: "{{ kolla_enable_sahara | bool }}"
|
|
- regex: swift
|
|
enabled: "{{ kolla_enable_swift | bool }}"
|
|
- regex: tgtd
|
|
enabled: True
|
|
|
|
# List of regular expressions matching names of container images to build for
|
|
# controllers.
|
|
controller_container_image_regexes: "{{ controller_container_image_regex_map | selectattr('enabled') | map(attribute='regex') | list }}"
|
|
|
|
# List of container image sets for controllers. This is used when building
|
|
# container images to determine which images to build.
|
|
controller_container_image_sets:
|
|
- regexes: "{{ controller_container_image_regexes | join(' ') }}"
|
|
|
|
# Dict mapping Jinja2 block names in kolla's Docker images to their contents.
|
|
kolla_build_blocks: {}
|
|
|
|
# Dict mapping image customization variable names to their values.
|
|
# Each variable takes the form:
|
|
# <image name>_<customization>_<operation>
|
|
# Hyphens in the image name are replaced with underscores. The customization is
|
|
# most commonly packages. The operation should be one of override, append or
|
|
# remove. The value should be a list.
|
|
kolla_build_customizations: {}
|
|
|
|
###############################################################################
|
|
# Kolla-ansible inventory configuration.
|
|
|
|
# Full custom seed inventory contents.
|
|
kolla_seed_inventory_custom:
|
|
|
|
# Custom overcloud inventory containing a mapping from top level groups to
|
|
# hosts.
|
|
kolla_overcloud_inventory_custom_top_level:
|
|
|
|
# Custom overcloud inventory containing a mapping from components to top level
|
|
# groups.
|
|
kolla_overcloud_inventory_custom_components:
|
|
|
|
# Custom overcloud inventory containing a mapping from services to components.
|
|
kolla_overcloud_inventory_custom_services:
|
|
|
|
# Full custom overcloud inventory contents. By default this will be the
|
|
# concatenation of the top level, component, and service inventories.
|
|
kolla_overcloud_inventory_custom:
|
|
|
|
# Dict mapping from kolla-ansible groups to kayobe groups and variables. Each
|
|
# item is a dict with the following items:
|
|
# * groups: A list of kayobe ansible groups to map to this kolla-ansible group.
|
|
# * vars: A dict mapping variable names to values for hosts in this
|
|
# kolla-ansible group.
|
|
kolla_overcloud_inventory_top_level_group_map:
|
|
control:
|
|
groups:
|
|
- controllers
|
|
network:
|
|
groups:
|
|
- network
|
|
|
|
# List of names of top level kolla-ansible groups. Any of these groups which
|
|
# have no hosts mapped to them will be provided with an empty group definition.
|
|
kolla_overcloud_inventory_kolla_top_level_groups:
|
|
- "control"
|
|
- "network"
|
|
- "compute"
|
|
- "monitoring"
|
|
- "storage"
|
|
- "deployment"
|
|
|
|
###############################################################################
|
|
# Kolla-ansible configuration.
|
|
|
|
# Password to use to encrypt the kolla-ansible passwords.yml file.
|
|
kolla_ansible_vault_password: "{{ lookup('env', 'KAYOBE_VAULT_PASSWORD') | default }}"
|
|
|
|
# Whether TLS is enabled for the external API endpoints.
|
|
kolla_enable_tls_external: "no"
|
|
|
|
# Path to external API certificate.
|
|
kolla_external_fqdn_cert:
|
|
|
|
# Whether debug logging is enabled.
|
|
kolla_openstack_logging_debug: "False"
|
|
|
|
###############################################################################
|
|
# Kolla feature flag configuration.
|
|
|
|
kolla_enable_barbican: "no"
|
|
kolla_enable_glance: "yes"
|
|
kolla_enable_haproxy: "yes"
|
|
kolla_enable_ironic: "yes"
|
|
kolla_enable_neutron: "yes"
|
|
kolla_enable_magnum: "no"
|
|
kolla_enable_murano: "no"
|
|
kolla_enable_sahara: "no"
|
|
kolla_enable_swift: "yes"
|
|
|
|
###############################################################################
|
|
# Passwords and credentials.
|
|
|
|
# Dictionary containing default custom passwords to add or override in the
|
|
# Kolla passwords file.
|
|
kolla_ansible_default_custom_passwords:
|
|
# SSH key authorized in hosts deployed by Bifrost.
|
|
bifrost_ssh_key:
|
|
private_key: "{{ lookup('file', ssh_private_key_path) }}"
|
|
public_key: "{{ lookup('file', ssh_public_key_path) }}"
|
|
# SSH key authorized by kolla user on Kolla hosts during
|
|
# kolla-ansible bootstrap-servers.
|
|
kolla_ssh_key:
|
|
private_key: "{{ lookup('file', ssh_private_key_path) }}"
|
|
public_key: "{{ lookup('file', ssh_public_key_path) }}"
|
|
|
|
# Dictionary containing custom passwords to add or override in the Kolla
|
|
# passwords file.
|
|
kolla_ansible_custom_passwords: "{{ kolla_ansible_default_custom_passwords }}"
|