Files
openstack-ansible-lxc_hosts/vars/redhat.yml
Dmitriy Chubinidze b095428555 add AlmaLinux core repo support for container cache
Change-Id: I0f8fc54711f47a81024c692871ce04b27955edae
Signed-off-by: Dmitriy Chubinidze <dcu995@gmail.com>
2026-01-24 09:30:27 +00:00

59 lines
1.7 KiB
YAML

---
# Copyright 2016, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# repo RPMs for LXC container builds
_lxc_cache_core_repos_list:
centos: "centos-stream-release centos-stream-repos"
rocky: "rocky-release rocky-repos"
almalinux: "almalinux-release almalinux-repos"
_lxc_cache_core_repos: "{{ _lxc_cache_core_repos_list.get(ansible_facts['distribution'] | lower) }}"
_lxc_hosts_container_build_command: >-
dnf --assumeyes --installroot=/var/lib/machines/{{ lxc_container_base_name }} install
--setopt=install_weak_deps=False --nodocs rootfiles coreutils dnf {{ _lxc_cache_core_repos }}
--releasever={{ ansible_facts['distribution_major_version'] }}
_lxc_copy_from_host:
- /etc/default/locale
- /etc/environment
- /etc/localtime
- /etc/locale.conf
- /etc/protocols
- /etc/pki/rpm-gpg/
- /etc/yum.repos.d/
_lxc_cache_prep_template: "prep-scripts/redhat_prep.sh.j2"
_lxc_cache_distro_packages:
- ca-certificates
- git-core # needed everywhere when wheel_build=false
- gnupg2
- iputils
- iproute
- libxml2
- policycoreutils
- procps
- python3
- python3-libs
- python3-setuptools
- setup
- sudo
- systemd
- systemd-networkd
- systemd-resolved
- systemd-udev
- tzdata