mirror of
https://git.bashclub.org/bashclub/zamba-lxc-toolbox.git
synced 2025-07-22 03:34:26 +02:00
Add ressource pool parameter
This commit is contained in:
parent
54883a83d1
commit
fbe274117f
2 changed files with 10 additions and 1 deletions
|
@ -87,6 +87,9 @@ LXC_VIM_BG_DARK=1
|
|||
# Default random password length
|
||||
LXC_RANDOMPWD=32
|
||||
|
||||
# Move lxc to specific ressource pool
|
||||
LXC_RESSOURCE_POOL=""
|
||||
|
||||
# Automatically add meta tags to lxc container
|
||||
LXC_AUTOTAG=1
|
||||
|
||||
|
|
|
@ -134,9 +134,15 @@ if [ $LXC_THREADS -gt 0 ]; then
|
|||
LXC_CORES=--cores\ $LXC_THREADS
|
||||
fi
|
||||
|
||||
|
||||
if [[ $LXC_RESSOURCE_POOL != "" ]]; then
|
||||
LXC_POOL=--pool\ $LXC_RESSOURCE_POOL
|
||||
fi
|
||||
|
||||
|
||||
# Create the container
|
||||
set +u
|
||||
pct create $LXC_NBR $TAGS $LXC_CORES --password $LXC_PWD -unprivileged $LXC_UNPRIVILEGED $LXC_TEMPLATE_STORAGE:vztmpl/$TMPL_NAME -rootfs $LXC_ROOTFS_STORAGE:$LXC_ROOTFS_SIZE;
|
||||
pct create $LXC_NBR $TAGS $LXC_CORES $LXC_POOL --password $LXC_PWD -unprivileged $LXC_UNPRIVILEGED $LXC_TEMPLATE_STORAGE:vztmpl/$TMPL_NAME -rootfs $LXC_ROOTFS_STORAGE:$LXC_ROOTFS_SIZE;
|
||||
set -u
|
||||
sleep 2;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue