From 610946e35778632c4b079b67b26e75e42a3365eb Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Sun, 5 Mar 2023 11:49:53 -0500 Subject: [PATCH] Improve cluster deployment --- deployment/cluster.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/deployment/cluster.sh b/deployment/cluster.sh index 5494dd4..c53d490 100755 --- a/deployment/cluster.sh +++ b/deployment/cluster.sh @@ -154,18 +154,12 @@ if ! command -v lxc >/dev/null 2>&1; then fi -ssh -t "ubuntu@$FQDN" " -set -e - -# install tool/dependencies -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 +# install dependencies. +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 + ssh "ubuntu@$FQDN" sudo snap install lxd --channel=5.10/stable sleep 10 fi -" # 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.