aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-01-19 14:23:09 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-02-06 13:21:21 +0100
commit4b950af8d3c4f4e7e6a76396062d5760e70a743e (patch)
treea7a2fde5fe7e2c93cfef6d7c4c669f9686fc256e /scripts
parent9b97d0774826eccf8dea9c27e4cebc68129ac4eb (diff)
downloadqemu-4b950af8d3c4f4e7e6a76396062d5760e70a743e.zip
qemu-4b950af8d3c4f4e7e6a76396062d5760e70a743e.tar.gz
qemu-4b950af8d3c4f4e7e6a76396062d5760e70a743e.tar.bz2
scripts/ci: support CentOS Stream 8 in build-environment.yaml
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ci/setup/build-environment.yml14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/build-environment.yml
index 5843800..c3cebc4 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'