packstack/playbooks/packstack-centos8-pre.yaml
yatinkarel a344b9cd36 Add jobs for CentOS 8
As part of adoption of CentOS 8 in RDO, this patch is adding support to
test with it:

- Adapt run_tests.sh for CentOS8.
- Add the option to have different versions of puppet modules (needed
for puppet-mysql until we can update mariadb in CentOS7.
- Add centos8 playbooks and jobs definition.

Change-Id: Ie53a8cb5517651487436e24bf60f51bc531f16d6
2019-12-19 14:44:24 +01:00

27 lines
908 B
YAML

- hosts: all
name: packstack-centos8-pre
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
cp -pr /home/zuul/src/opendev.org/x/packstack {{ ansible_user_dir }}/workspace
- shell:
cmd: |
set -e
set -x
rm -rf /etc/yum.repos.d/delorean*
dnf clean all
sudo sed -i '/^exclude.*/d' /etc/dnf/dnf.conf
dnf -y install libxml2-devel libxslt-devel ruby-devel zlib-devel
dnf -y install gcc gettext diffstat doxygen patch patchutils subversion systemtap git python3-setuptools wget redhat-lsb-core python3-libselinux virt-what yum
pip uninstall requests -y || true
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
become: true
environment: '{{ zuul }}'