[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/5] scripts/ci: support CentOS Stream 8 in build-environment.yaml
From: |
Paolo Bonzini |
Subject: |
[PULL 2/5] scripts/ci: support CentOS Stream 8 in build-environment.yaml |
Date: |
Tue, 7 Feb 2023 12:38:04 +0100 |
Update the CI playbook so that it is able to prepare a system with a
fresh CentOS Stream 8 install, rather than just support RHEL.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
scripts/ci/setup/build-environment.yml | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/scripts/ci/setup/build-environment.yml
b/scripts/ci/setup/build-environment.yml
index 58438008eeb6..c3cebc42ac2c 100644
--- a/scripts/ci/setup/build-environment.yml
+++ b/scripts/ci/setup/build-environment.yml
@@ -130,6 +130,16 @@
- ansible_facts['distribution_version'] == '20.04'
- ansible_facts['architecture'] == 'aarch64'
+ - name: Enable PowerTools repo on CentOS 8
+ ini_file:
+ path: /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
+ section: powertools
+ option: enabled
+ value: "1"
+ when:
+ - ansible_facts['distribution_file_variety'] == 'CentOS'
+ - ansible_facts['distribution_major_version'] == '8'
+
- name: Install basic packages to build QEMU on EL8
dnf:
# This list of packages start with
tests/docker/dockerfiles/centos8.docker
@@ -164,7 +174,7 @@
- zlib-devel
state: present
when:
- - ansible_facts['distribution_file_variety'] == 'RedHat'
+ - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
- ansible_facts['distribution_version'] == '8'
- name: Install packages only available on x86 and aarch64
@@ -174,6 +184,6 @@
- spice-server
state: present
when:
- - ansible_facts['distribution_file_variety'] == 'RedHat'
+ - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
- ansible_facts['distribution_version'] == '8'
- ansible_facts['architecture'] == 'aarch64' or
ansible_facts['architecture'] == 'x86_64'
--
2.38.1
- [PULL 0/5] Update CentOS 8 custom runner to use Python 3.8, Paolo Bonzini, 2023/02/07
- [PULL 1/5] scripts/ci: remove unnecessary checks from CentOS playbook, Paolo Bonzini, 2023/02/07
- [PULL 2/5] scripts/ci: support CentOS Stream 8 in build-environment.yaml,
Paolo Bonzini <=
- [PULL 3/5] scripts/ci: add capstone development packages, Paolo Bonzini, 2023/02/07
- [PULL 4/5] scripts/ci: unify package lists for CentOS in build-environment files, Paolo Bonzini, 2023/02/07
- [PULL 5/5] scripts/ci: bump CentOS Python to 3.8, Paolo Bonzini, 2023/02/07
- Re: [PULL 0/5] Update CentOS 8 custom runner to use Python 3.8, Peter Maydell, 2023/02/08