Flux install of compute cluster
[icn.git] / env / metal3 / 01_install_package.sh
index ce5aa2f..8b8c36f 100755 (executable)
@@ -12,12 +12,15 @@ if [[ $EUID -ne 0 ]]; then
 fi
 
 function install_essential_packages {
+    export DEBIAN_FRONTEND=noninteractive
     apt-get update
     apt-get -y install \
+    ca-certificates \
     crudini \
     curl \
     dnsmasq \
     figlet \
+    ipcalc \
     nmap \
     patch \
     psmisc \
@@ -27,8 +30,7 @@ function install_essential_packages {
     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
@@ -52,12 +54,6 @@ function install_ironic_packages {
     genisoimage \
     whois
 
-    if [ "$1" == "offline" ]; then
-    pip install --no-index
-        --find-links=file:$PIP_CACHE_DIR locat yq
-    return
-    fi
-
     pip install \
     lolcat \
     yq
@@ -65,13 +61,12 @@ function install_ironic_packages {
 
 install() {
     install_essential_packages
-    install_ironic_packages $1
+    install_ironic_packages
+    install_kustomize
+    install_clusterctl
+    install_flux_cli
+    install_sops
+    install_emcoctl
 }
 
-if [ "$#" -eq 0 ]; then
-    install online
-elif [ "$1" == "-o" ]; then
-    install offline
-else
-    exit 1
-fi
+install