Update vmcreate1.sh

This commit is contained in:
2025-10-26 15:15:49 +00:00
parent 589914c660
commit 748dff3df2

View File

@@ -19,14 +19,14 @@ show_help(){
echo 'Usage:' echo 'Usage:'
echo 'vmcreate [-h][-a rule_name][-k pub_keyfile][-u][-p][-d 50][-t][-f filename]' echo 'vmcreate [-h][-a rule_name][-k pub_keyfile][-u][-p][-d 50][-t][-f filename]'
echo 'Arguments:' echo 'Arguments:'
echo '-h - show this help;' echo '-h - show this help.'
echo '-a - add hosts to HA affinity rules;' echo '-a - add hosts to HA affinity rules with name 'rule_name'.'
echo "-k - embed custom public key or create new if 'pub_keyfile' not specified" echo "-k - embed custom public key or create new if 'pub_keyfile' does not exist."
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 "-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 echo
echo "If file not specified, script will use arguments as a list of IP addresses." echo "If file not specified, script will use arguments as a list of IP addresses."
echo "In this case Hostname will be inherited from 2 last IP octets. Example for 10.10.35.20: 'vm035020'." echo "In this case Hostname will be inherited from 2 last IP octets. Example for 10.10.35.20: 'vm035020'."