1
1

Improve cluster deployment

This commit is contained in:
Derek Smith 2023-03-05 11:49:53 -05:00
parent ddb0fbef57
commit 610946e357
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -154,18 +154,12 @@ if ! command -v lxc >/dev/null 2>&1; then
fi fi
ssh -t "ubuntu@$FQDN" " # install dependencies.
set -e ssh "ubuntu@$FQDN" sudo apt-get update && sudo apt-get upgrade -y && sudo apt install htop dnsutils nano -y
if ! ssh "ubuntu@$FQDN" snap list | grep -q lxd; then
# install tool/dependencies ssh "ubuntu@$FQDN" sudo snap install lxd --channel=5.10/stable
sudo apt-get update && sudo apt-get upgrade -y && sudo apt install htop dnsutils nano -y
# install lxd as a snap if it's not installed.
if ! snap list | grep -q lxd; then
sudo snap install lxd --channel=5.10/stable
sleep 10 sleep 10
fi fi
"
# if the DATA_PLANE_MACVLAN_INTERFACE is not specified, then we 'll # if the DATA_PLANE_MACVLAN_INTERFACE is not specified, then we 'll
# just attach VMs to the network interface used for for the default route. # just attach VMs to the network interface used for for the default route.