1
1
sovereign-stack/deployment/show.sh

38 lines
596 B
Bash
Raw Normal View History

2022-08-24 14:11:50 +00:00
#!/bin/bash
2023-03-23 18:25:31 +00:00
set -eu
cd "$(dirname "$0")"
2023-03-09 20:36:30 +00:00
2023-03-23 18:25:31 +00:00
. ../defaults.sh
2023-03-09 20:36:30 +00:00
2023-03-23 18:25:31 +00:00
. ./remote_env.sh
echo "Global Settings:"
lxc image list
2023-02-01 19:44:05 +00:00
lxc storage list
2023-03-18 22:18:21 +00:00
lxc storage volume list ss-base
2023-03-23 18:25:31 +00:00
echo
echo
2023-04-02 13:41:42 +00:00
export PROJECT_NAME="$(lxc info | grep "project:" | awk '{print $2}')"
export PROJECT_PATH="$PROJECTS_PATH/$PROJECT_NAME"
echo
echo
echo "Project: $PROJECT_NAME"
echo "----------------------------------------------------------"
echo " Networks:"
lxc network list
echo
echo " Profiles:"
lxc profile list
echo
echo " Instances (VMs):"
lxc list
echo "----------------------------------------------------------"