fi
function install_essential_packages {
+ export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y install \
+ ca-certificates \
crudini \
curl \
dnsmasq \
vim \
wget \
git \
- software-properties-common \
- bridge-utils
+ 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
genisoimage \
whois
- if [ "$1" == "offline" ]; then
- pip install --no-index
- --find-links=file:$PIP_CACHE_DIR locat yq
- return
- fi
-
pip install \
lolcat \
yq
install() {
install_essential_packages
- install_ironic_packages $1
+ install_ironic_packages
}
-if [ "$#" -eq 0 ]; then
- install online
-elif [ "$1" == "-o" ]; then
- install offline
-else
- exit 1
-fi
+install