From 012609b09af00de13e50fc25713594e46c490bdf Mon Sep 17 00:00:00 2001 From: Dodge245 <51231113+dodge245@users.noreply.github.com> Date: Sun, 2 Jun 2019 13:09:33 +0100 Subject: [PATCH] VMware: Update doc for num_cpus and num_cpu_cores_per_socket calculation (#57227) Updated document to explain num_cpus is multiple num_cpu_cores_per_socket. --- lib/ansible/modules/cloud/vmware/vmware_guest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest.py b/lib/ansible/modules/cloud/vmware/vmware_guest.py index 1aa5bc055f..6a63e97798 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest.py @@ -134,7 +134,9 @@ options: - ' - C(memory_mb) (integer): Amount of memory in MB.' - ' - C(nested_virt) (bool): Enable nested virtualization. version_added: 2.5' - ' - C(num_cpus) (integer): Number of CPUs.' - - ' - C(num_cpu_cores_per_socket) (integer): Number of Cores Per Socket. Value should be multiple of C(num_cpus).' + - ' - C(num_cpu_cores_per_socket) (integer): Number of Cores Per Socket.' + - " C(num_cpus) must be a multiple of C(num_cpu_cores_per_socket). + For example to create a VM with 2 sockets of 4 cores, specify C(num_cpus): 8 and C(num_cpu_cores_per_socket): 4" - ' - C(scsi) (string): Valid values are C(buslogic), C(lsilogic), C(lsilogicsas) and C(paravirtual) (default).' - " - C(memory_reservation_lock) (boolean): If set true, memory resource reservation for the virtual machine will always be equal to the virtual machine's memory size. version_added: 2.5"