Skip to content

Commit c9dc536

Browse files
authored
kolla_base_arch: derive from local uname (#1769)
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.
1 parent 3cbefd2 commit c9dc536

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

etc/kayobe/kolla.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ kolla_ansible_source_version: "{{ stackhpc_kolla_ansible_source_version }}"
6262
###############################################################################
6363
# Kolla configuration.
6464

65+
# Kolla base container image architecture. Options are "x86_64", "aarch64".
66+
# Default is "{{ ansible_facts.architecture }}"
67+
# NOTE(bbezak): evaluating this var locally for non facts gathering playbooks
68+
kolla_base_arch: "{{ 'aarch64' if lookup('pipe','uname -m') in ['aarch64','arm64'] else 'x86_64' }}"
69+
6570
# Kolla base container image distribution. Options are "centos", "debian",
6671
# "rocky", "ubuntu". Default is {{ os_distribution }}.
6772
#kolla_base_distro:

0 commit comments

Comments
 (0)