1
1

Make volumes project-specific.

This commit is contained in:
Derek Smith 2023-04-04 16:24:39 -04:00
parent cae11df6a5
commit 0f65419d55
Signed by: farscapian
GPG Key ID: B443E530A14E1C90
2 changed files with 13 additions and 8 deletions

View File

@ -48,10 +48,10 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
# create the lxc project as specified by PROJECT_NAME
if ! lxc project list | grep -q "$PROJECT_NAME"; then
lxc project create "$PROJECT_NAME"
lxc project set "$PROJECT_NAME" features.networks=true features.images=false features.storage.volumes=false
lxc project set "$PROJECT_NAME" features.networks=true features.images=false features.storage.volumes=true
lxc project switch "$PROJECT_NAME"
fi
# default values are already at regtest mode.
if [ "$BITCOIN_CHAIN" = testnet ]; then

View File

@ -11,27 +11,32 @@ echo "Global Settings:"
lxc image list
lxc storage list
lxc storage volume list ss-base
echo
echo
export PROJECT_NAME="$(lxc info | grep "project:" | awk '{print $2}')"
PROJECT_NAME="$(lxc info | grep "project:" | awk '{print $2}')"
export export="$PROJECT_NAME"
export PROJECT_PATH="$PROJECTS_PATH/$PROJECT_NAME"
echo
echo
echo "Project: $PROJECT_NAME"
echo "Active project: $PROJECT_NAME"
echo "----------------------------------------------------------"
echo " Networks:"
lxc network list
echo
echo " Storage Volumes:"
lxc storage volume list ss-base
echo
echo " Profiles:"
lxc profile list
echo
echo " Instances (VMs):"
lxc list
echo "----------------------------------------------------------"