CI: Rework docker config vars

Change-Id: I552fea9f9b461e57611f1d2aa5c767a1f4043ff8
This commit is contained in:
Michal Nasiadka 2023-12-20 07:21:21 +01:00
parent 2cc21b0e63
commit 85e6432630
2 changed files with 19 additions and 10 deletions

View File

@ -25,6 +25,8 @@ copy_logs() {
# copy docker configs if used # copy docker configs if used
if [ "$CONTAINER_ENGINE" = "docker" ]; then if [ "$CONTAINER_ENGINE" = "docker" ]; then
cp -rL /etc/docker/ ${LOG_DIR}/system_configs/ cp -rL /etc/docker/ ${LOG_DIR}/system_configs/
elif [ "$CONTAINER_ENGINE" = "podman" ]; then
cp -rL /etc/containers/ ${LOG_DIR}/system_configs/
fi fi
# Remove /var/log/kolla link to not double the data uploaded # Remove /var/log/kolla link to not double the data uploaded
unlink /var/log/kolla unlink /var/log/kolla

View File

@ -13,25 +13,32 @@ kolla_base_distro: "{{ base_distro }}"
network_interface: "{{ api_interface_name }}" network_interface: "{{ api_interface_name }}"
network_address_family: "{{ address_family }}" network_address_family: "{{ address_family }}"
kolla_container_engine: "{{ container_engine }}" kolla_container_engine: "{{ container_engine }}"
docker_restart_policy: "no"
{% if container_engine == 'podman' %} {% if container_engine == 'podman' %}
podman_registry: "primary:4000" podman_debug: true
podman_registry_insecure: "yes" podman_registry_mirrors:
- {{ infra_dockerhub_mirror }}
podman_sdk_pip_packages: podman_sdk_pip_packages:
- "podman>=4.7.0" - "podman>=4.7.0"
- rich - rich
{% if need_build_image and is_previous_release %}
podman_registry: "primary:4000"
podman_registry_insecure: true
{% endif %} {% endif %}
docker_restart_policy: "no" {% else %}
docker_custom_config: docker_debug: true
debug: true docker_registry_mirrors:
registry-mirrors:
- {{ infra_dockerhub_mirror }} - {{ infra_dockerhub_mirror }}
{% if need_build_image and is_previous_release %} {% if need_build_image and is_previous_release %}
insecure-registries: docker_registry: "primary:4000"
- primary:4000 docker_registry_insecure: true
{% endif %} {% endif %}
{% if ansible_facts.distribution == "openEuler" %} {% if ansible_facts.distribution == "openEuler" %}
docker_custom_config:
exec-opts: ["native.umask=normal"] exec-opts: ["native.umask=normal"]
{% endif %} {% endif %}
{% endif %}
{% if kolla_python_version is defined and not is_previous_release %} {% if kolla_python_version is defined and not is_previous_release %}
distro_python_version: "{{ kolla_python_version }}" distro_python_version: "{{ kolla_python_version }}"