scripts: bootstrap-ansible: Add required packages on openSUSE Leap
Add support for installing required packages on openSUSE hosts. Moreover, we force python2 on openSUSE since the shipped python-3.4 is not supported by Ansible upstream. Link: https://github.com/ansible/ansible/issues/24180 Change-Id: I4ce2a066a32cf7a3b552f30788fe2c73511f99d0
This commit is contained in:
parent
6343169089
commit
83ab078728
@ -77,6 +77,16 @@ case ${DISTRO_ID} in
|
|||||||
libssl-dev libffi-dev \
|
libssl-dev libffi-dev \
|
||||||
python-apt python3-apt
|
python-apt python3-apt
|
||||||
;;
|
;;
|
||||||
|
opensuse)
|
||||||
|
zypper -n install -l git-core curl autoconf gcc gcc-c++ \
|
||||||
|
netcat-openbsd python python-xml python-devel gcc \
|
||||||
|
libffi-devel libopenssl-devel python-pip
|
||||||
|
# Leap ships with python3.4 which is not supported by ansible and as
|
||||||
|
# such we are using python2
|
||||||
|
# See https://github.com/ansible/ansible/issues/24180
|
||||||
|
PYTHON_EXEC_PATH="/usr/bin/python2"
|
||||||
|
alternatives --set pip /usr/bin/pip2.7
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Ensure we use the HTTPS/HTTP proxy with pip if it is specified
|
# Ensure we use the HTTPS/HTTP proxy with pip if it is specified
|
||||||
|
Loading…
x
Reference in New Issue
Block a user