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 {
30 software-properties-common
32 update-alternatives --install /usr/bin/python python /usr/bin/python3 1
33 update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
35 add-apt-repository -y ppa:longsleep/golang-backports
37 apt-get install golang-go -y
40 function install_ironic_packages {
45 python3-ironicclient \
46 python3-ironic-inspector-client \
49 python3-openstackclient \
60 install_essential_packages
61 install_ironic_packages