mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
enable rhel8 beta for testing in ec2 (#48831)
This commit is contained in:
parent
0826a00803
commit
4771ccc24b
2 changed files with 41 additions and 12 deletions
|
@ -1,3 +1,4 @@
|
||||||
freebsd/11.1
|
freebsd/11.1
|
||||||
osx/10.11
|
osx/10.11
|
||||||
rhel/7.6
|
rhel/7.6
|
||||||
|
rhel/8.0
|
||||||
|
|
|
@ -27,19 +27,47 @@ if [ "${platform}" = "freebsd" ]; then
|
||||||
|
|
||||||
pip --version 2>/dev/null || curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | python
|
pip --version 2>/dev/null || curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | python
|
||||||
elif [ "${platform}" = "rhel" ]; then
|
elif [ "${platform}" = "rhel" ]; then
|
||||||
while true; do
|
if grep '8\.' /etc/redhat-release; then
|
||||||
yum install -y \
|
while true; do
|
||||||
gcc \
|
curl -o /etc/yum.repos.d/rhel-8-beta.repo http://downloads.redhat.com/redhat/rhel/rhel-8-beta/rhel-8-beta.repo && \
|
||||||
python-devel \
|
dnf config-manager --set-enabled rhel-8-for-x86_64-baseos-beta-rpms && \
|
||||||
python-jinja2 \
|
dnf config-manager --set-enabled rhel-8-for-x86_64-appstream-beta-rpms && \
|
||||||
python-virtualenv \
|
yum -y module install python36 && \
|
||||||
python2-cryptography \
|
yum install -y \
|
||||||
&& break
|
gcc \
|
||||||
echo "Failed to install packages. Sleeping before trying again..."
|
python3-devel \
|
||||||
sleep 10
|
python3-jinja2 \
|
||||||
done
|
python3-virtualenv \
|
||||||
|
python3-cryptography \
|
||||||
|
iptables \
|
||||||
|
&& break
|
||||||
|
echo "Failed to install packages. Sleeping before trying again..."
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
pip --version 2>/dev/null || curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | python
|
# When running from source our python shebang is: #!/usr/bin/env python
|
||||||
|
# To avoid modifying all of our scripts while running tests we make sure `python` is in our PATH.
|
||||||
|
if [ ! -f /usr/bin/python ]; then
|
||||||
|
ln -s /usr/bin/python3 /usr/bin/python
|
||||||
|
fi
|
||||||
|
if [ ! -f /usr/bin/pip ]; then
|
||||||
|
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
while true; do
|
||||||
|
yum install -y \
|
||||||
|
gcc \
|
||||||
|
python-devel \
|
||||||
|
python-jinja2 \
|
||||||
|
python-virtualenv \
|
||||||
|
python2-cryptography \
|
||||||
|
&& break
|
||||||
|
echo "Failed to install packages. Sleeping before trying again..."
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
|
pip --version 2>/dev/null || curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | python
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${platform}" = "freebsd" ] || [ "${platform}" = "osx" ]; then
|
if [ "${platform}" = "freebsd" ] || [ "${platform}" = "osx" ]; then
|
||||||
|
|
Loading…
Reference in a new issue