openstack-ansible-lxc_hosts/vars/redhat.yml

57 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.
_lxc_cache_core_repos_list:
centos: "centos-stream-release centos-stream-repos"
rocky: "rocky-release rocky-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/pluginconf.d/fastestmirror.conf
- /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
- iputils
- iproute
- libxml2
- policycoreutils
- procps
- python3
- python3-libs
- setup
- sudo
- systemd
- systemd-resolved
- systemd-networkd
- systemd-sysv
- systemd-udev
- tzdata