1
1
sovereign-stack/reset.sh

40 lines
867 B
Bash
Raw Permalink Normal View History

2022-07-27 16:38:33 +00:00
#!/bin/bash
set -x
2022-08-24 14:11:50 +00:00
SSH_ENDPOINT_HOSTNAME="atlantis"
SSH_ENDPOINT_DOMAIN_NAME="ancapistan.io"
TEST_DOMAIN="ancapistan.casa"
2022-09-09 18:00:07 +00:00
CLUSTER_NAME="development"
2022-08-19 21:50:41 +00:00
export LXD_VM_NAME="${TEST_DOMAIN//./-}"
2022-07-27 16:38:33 +00:00
2022-09-09 18:00:07 +00:00
if [ -n "$TEST_DOMAIN" ]; then
lxc delete --force www-"$LXD_VM_NAME"
lxc delete --force btcpay-"$LXD_VM_NAME"
lxc delete --force sovereign-stack
lxc delete --force sovereign-stack-base
lxc profile delete www-"$LXD_VM_NAME"
lxc profile delete btcpay-"$LXD_VM_NAME"
fi
2022-07-27 16:38:33 +00:00
lxc profile delete sovereign-stack
lxc image rm sovereign-stack-base
lxc image rm ubuntu-base
2022-08-24 14:11:50 +00:00
lxc network delete lxdbrSS
2022-07-27 16:38:33 +00:00
lxc storage delete sovereign-stack
lxc remote switch "local"
lxc remote remove "$CLUSTER_NAME"
source "$HOME/.bashrc"
2022-09-09 18:00:07 +00:00
./cluster.sh create "$CLUSTER_NAME" "$SSH_ENDPOINT_HOSTNAME.$SSH_ENDPOINT_DOMAIN_NAME"
#--data-plane-interface=enp89s0
2022-07-27 16:38:33 +00:00
2022-08-24 14:11:50 +00:00
#./deploy.sh