failed_when: "'Result: success\n' != result.output"
tags: [gerrit]
-- name: Install python-pip
+- name: Install python3-pip
apt:
- name: python-pip
+ name: python3-pip
tags: [jobs]
- name: Install python-jenkins and lxml(required by jenkins_job module)
nmap \
patch \
psmisc \
- python-pip \
+ python3-pip \
wget
-
+sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
# Install pyenv
fi
fi
-pyenv install -s 2.7.18
-pyenv versions
-pyenv global 2.7.18
# There are some packages which are newer in the tripleo repos
# Setup yarn and nodejs repositories
nodejs \
qemu-kvm \
libvirt-bin libvirt-clients libvirt-dev \
- python-ironicclient \
- python-ironic-inspector-client \
golang-go \
- python-lxml \
unzip \
yarn \
genisoimage
- libvirt-bin
- libvirt-clients
- libvirt-dev
- - python-libvirt
+ - python3-libvirt
- libguestfs-tools
- - python-lxml
+ - python3-lxml
- gir1.2-polkit-1.0
- libpolkit-agent-1-0
- libpolkit-backend-1-0
nmap \
patch \
psmisc \
- python-pip \
- python-requests \
- python-setuptools \
+ python3-pip \
+ python3-requests \
+ python3-setuptools \
vim \
wget \
git \
software-properties-common
+ update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+ update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
+
add-apt-repository -y ppa:longsleep/golang-backports
apt-get update
apt-get install -y golang-go
nmap \
patch \
psmisc \
- python-pip \
- python-requests \
- python-setuptools \
+ python3-pip \
+ python3-requests \
+ python3-setuptools \
vim \
wget \
git \
software-properties-common \
bridge-utils
+ update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+ update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
+
add-apt-repository -y ppa:longsleep/golang-backports
apt-get update
apt-get install golang-go -y
apt-get -y install \
jq \
nodejs \
- python-ironicclient \
- python-ironic-inspector-client \
- python-lxml \
- python-netaddr \
- python-openstackclient \
+ python3-ironicclient \
+ python3-ironic-inspector-client \
+ python3-lxml \
+ python3-netaddr \
+ python3-openstackclient \
unzip \
genisoimage \
whois
function download_essential_packages {
apt-get update
for package in crudini curl dnsmasq figlet golang nmap patch psmisc \
- python-pip python-requests python-setuptools vim wget; do
+ python3-pip python3-requests python3-setuptools vim wget; do
apt-get -d install $package -y
done
+ update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+ update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
}
function build_baremetal_operator_images {
function check_pip {
if ! which pip ; then
- apt-get install python-pip -y
+ apt-get install python3-pip -y
fi
+ update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
}
function check_curl {
}
function download_ironic_packages {
- for package in jq nodejs python-ironicclient \
- python-ironic-inspector-client python-lxml python-netaddr \
- python-openstackclient unzip genisoimage; do
+ for package in jq nodejs python3-ironicclient \
+ python3-ironic-inspector-client python3-lxml python3-netaddr \
+ python3-openstackclient unzip genisoimage; do
apt-get -d install $package -y
done
function clean_essential_packages {
apt-get update
for package in crudini curl dnsmasq figlet golang nmap patch psmisc \
- python-pip python-requests python-setuptools vim wget; do
+ python3-pip python3-requests python3-setuptools vim wget; do
apt-get remove $package -y
done
+ update-alternatives --remove python /usr/bin/python3
+ update-alternatives --remove pip /usr/bin/pip3
autoremove
}
function check_prerequisite {
if !(which pip); then
- apt-get install python-pip -y
+ apt-get install python3-pip -y
fi
+ update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+ update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
if !(which curl); then
apt-get install curl -y
}
function clean_ironic_packages {
- for package in python-ironicclient \
- python-ironic-inspector-client \
- python-openstackclient genisoimage; do
+ for package in python3-ironicclient \
+ python3-ironic-inspector-client \
+ python3-openstackclient genisoimage; do
apt-get remove $package -y
done
}