#!/usr/bin/env bash
-set -ex
+set -eux -o pipefail
LIBDIR="$(dirname "$PWD")"
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
+ genisoimage \
+ whois
if [ "$1" == "offline" ]; then
pip install --no-index
#install_kubernetes_packages $1
}
-if ["$1" == "-o"]; then
+if [ "$#" -eq 0 ]; then
+ install online
+elif [ "$1" == "-o" ]; then
install offline
- exit 0
+else
+ exit 1
fi
-
-install