From 6059928b5a18a9758d59034f63a680bdb9ea77f1 Mon Sep 17 00:00:00 2001 From: Bartosz Bezak Date: Thu, 17 Jul 2025 13:09:11 +0200 Subject: [PATCH] kolla_base_arch: derive from local uname Some playbooks skip fact gathering. Kayobe's default references ansible_facts.architecture, which may be undefined. Derive from `uname -m` so templating works without gathered facts. Change-Id: Ic6795cdcdd49c6629d58a86edcc523bea64c2157 --- etc/kayobe/kolla.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/kayobe/kolla.yml b/etc/kayobe/kolla.yml index 2c5235533a..5d0ed50e6f 100644 --- a/etc/kayobe/kolla.yml +++ b/etc/kayobe/kolla.yml @@ -62,6 +62,11 @@ kolla_ansible_source_version: "{{ stackhpc_kolla_ansible_source_version }}" ############################################################################### # Kolla configuration. +# Kolla base container image architecture. Options are "x86_64", "aarch64". +# Default is "{{ ansible_facts.architecture }}" +# NOTE(bbezak): evaluating this var locally for non facts gathering playbooks +kolla_base_arch: "{{ 'aarch64' if lookup('pipe','uname -m') in ['aarch64','arm64'] else 'x86_64' }}" + # Kolla base container image distribution. Options are "centos", "debian", # "rocky", "ubuntu". Default is {{ os_distribution }}. #kolla_base_distro: