From 73c9581299aaf0a4a4b542511ba8f88913b310fa Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 28 May 2025 18:43:18 +0200 Subject: [PATCH] Do not use distro templates by default With spawning LXC from customly built images, we no longer need to rely on configuration templates. Moreover, such templates are not available for EL9 from EPEL. We also should respect architecture of the LXC hosts in containers base config. Change-Id: I09f04668c1164bde78bbb07615f5c7689caefada --- templates/meta-data/config | 4 ++-- templates/meta-data/config.5 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/meta-data/config b/templates/meta-data/config index e3122736..2fecee25 100644 --- a/templates/meta-data/config +++ b/templates/meta-data/config @@ -1,2 +1,2 @@ -lxc.include = LXC_TEMPLATE_CONFIG/{{ ansible_facts['distribution'] | lower }}.common.conf -lxc.arch = x86_64 +lxc.include = LXC_TEMPLATE_CONFIG/common.conf +lxc.arch = {{ ansible_facts['architecture'] }} diff --git a/templates/meta-data/config.5 b/templates/meta-data/config.5 index 7573ff31..2fecee25 100644 --- a/templates/meta-data/config.5 +++ b/templates/meta-data/config.5 @@ -1,2 +1,2 @@ lxc.include = LXC_TEMPLATE_CONFIG/common.conf -lxc.arch = x86_64 +lxc.arch = {{ ansible_facts['architecture'] }}