Maksim Malchuk 070621a45d Allow to use own repos.y[a]ml file to build containers
Followup the I0b07da22fea27e0ff4e90aaad19e50d84ff9a121 from Kolla.
This change allow to use own repos.y[a]ml file to build containers.
Multiple Environments supported.

Change-Id: I0d7ab0d8ff5b16ac5de8e50e63400bd455996555
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2023-04-19 16:06:46 +00:00

50 lines
1.3 KiB
Plaintext

[DEFAULT]
# Base container image distribution.
base={{ kolla_base_distro }}
# Base container image tag.
base_tag={{ kolla_base_tag }}
# Docker namespace to use for Kolla images.
namespace={{ kolla_docker_namespace }}
# Use host networking by default, in line with Kolla Ansible's default Docker
# engine configuration.
network_mode=host
# Docker image tag to apply.
tag={{ kolla_tag }}
{% if kolla_build_repos_yaml_path is defined %}
# Path to a file containing repos overrides.
repos_yaml={{ kolla_build_repos_yaml_path }}
{% endif %}
# Path to a file containing template overrides.
template_override={{ kolla_build_config_path }}/template-override.j2
{% for source_name, source_def in kolla_sources.items() %}
[{{ source_name }}]
{% if source_def.type is defined %}
# Type of source for {{ source_name }}.
type = {{ source_def.type }}
{% endif %}
{% if source_def.location is defined %}
# Location of source for {{ source_name }}.
location = {{ source_def.location }}
{% endif %}
{% if source_def.reference is defined %}
# Reference of source for {{ source_name }}.
reference = {{ source_def.reference }}
{% endif %}
{% endfor %}
{% if kolla_build_extra_config is defined %}
#######################
# Extra configuration
#######################
{{ kolla_build_extra_config }}
{% endif %}