Make volumes project-specific.
This commit is contained in:
parent
cae11df6a5
commit
0f65419d55
@ -48,10 +48,10 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
|
|||||||
# create the lxc project as specified by PROJECT_NAME
|
# create the lxc project as specified by PROJECT_NAME
|
||||||
if ! lxc project list | grep -q "$PROJECT_NAME"; then
|
if ! lxc project list | grep -q "$PROJECT_NAME"; then
|
||||||
lxc project create "$PROJECT_NAME"
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
# default values are already at regtest mode.
|
# default values are already at regtest mode.
|
||||||
if [ "$BITCOIN_CHAIN" = testnet ]; then
|
if [ "$BITCOIN_CHAIN" = testnet ]; then
|
||||||
|
|
||||||
|
@ -11,27 +11,32 @@ echo "Global Settings:"
|
|||||||
|
|
||||||
lxc image list
|
lxc image list
|
||||||
lxc storage list
|
lxc storage list
|
||||||
lxc storage volume list ss-base
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
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"
|
export PROJECT_PATH="$PROJECTS_PATH/$PROJECT_NAME"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "Project: $PROJECT_NAME"
|
echo "Active project: $PROJECT_NAME"
|
||||||
echo "----------------------------------------------------------"
|
echo "----------------------------------------------------------"
|
||||||
|
|
||||||
echo " Networks:"
|
echo " Networks:"
|
||||||
lxc network list
|
lxc network list
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo " Storage Volumes:"
|
||||||
|
lxc storage volume list ss-base
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo " Profiles:"
|
echo " Profiles:"
|
||||||
lxc profile list
|
lxc profile list
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo " Instances (VMs):"
|
echo " Instances (VMs):"
|
||||||
lxc list
|
lxc list
|
||||||
echo "----------------------------------------------------------"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user