Update vmcreate.sh
This commit is contained in:
@@ -36,7 +36,7 @@ show_help () {
|
|||||||
echo "-u - specify user instead of default 'root'."
|
echo "-u - specify user instead of default 'root'."
|
||||||
echo "-p - specify password instead of default."
|
echo "-p - specify password instead of default."
|
||||||
echo "-d - add custom disk space (in gibibytes, integer). Default is 50."
|
echo "-d - add custom disk space (in gibibytes, integer). Default is 50."
|
||||||
echo "-n - specify target node NUMBER to migrate VM to after creating. Default is '3'"
|
# echo "-n - specify target node NUMBER to migrate VM to after creating. Default is '3'"
|
||||||
echo "-t - add additional proxmox tag. Default is only pve node number."
|
echo "-t - add additional proxmox tag. Default is only pve node number."
|
||||||
echo "-f - get IP addresses and Hostnames from 'flilename'."
|
echo "-f - get IP addresses and Hostnames from 'flilename'."
|
||||||
echo "-s - specify custom snippet template. Default is 'user.yaml'"
|
echo "-s - specify custom snippet template. Default is 'user.yaml'"
|
||||||
@@ -148,7 +148,7 @@ REMOVE () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Обрабатываем опции
|
# Обрабатываем опции
|
||||||
while getopts "a:f:hk:u:p:d:n:t:s:R" opt; do
|
while getopts "a:f:hk:u:p:d:t:s:R" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
a) harule=${OPTARG};;
|
a) harule=${OPTARG};;
|
||||||
f) file=${OPTARG};;
|
f) file=${OPTARG};;
|
||||||
@@ -157,7 +157,7 @@ while getopts "a:f:hk:u:p:d:n:t:s:R" opt; do
|
|||||||
u) username=${OPTARG};;
|
u) username=${OPTARG};;
|
||||||
p) password=${OPTARG};;
|
p) password=${OPTARG};;
|
||||||
d) size=${OPTARG};;
|
d) size=${OPTARG};;
|
||||||
n) node=${OPTARG};;
|
# n) node=${OPTARG};;
|
||||||
t) tag=${OPTARG};;
|
t) tag=${OPTARG};;
|
||||||
s) template=${OPTARG};;
|
s) template=${OPTARG};;
|
||||||
R) remove=true;;
|
R) remove=true;;
|
||||||
|
|||||||
Reference in New Issue
Block a user