4 LIBDIR="$(dirname "$PWD")"
6 source $LIBDIR/lib/common.sh
7 source $LIBDIR/lib/logging.sh
9 if [[ $EUID -ne 0 ]]; then
10 echo "This script must be run as root"
14 function install_essential_packages {
15 export DEBIAN_FRONTEND=noninteractive
33 software-properties-common
35 update-alternatives --install /usr/bin/python python /usr/bin/python3 1
36 update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
38 add-apt-repository -y ppa:longsleep/golang-backports
40 apt-get install golang-go -y
43 function install_ironic_packages {
48 python3-ironicclient \
49 python3-ironic-inspector-client \
52 python3-openstackclient \
63 install_essential_packages
64 install_ironic_packages