1
1
sovereign-stack/deployment/show.sh

43 lines
617 B
Bash
Raw Normal View History

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