vm.tsv 1.1 KB

1234567891011121314151617181920212223
  1. # This is a sample data file that is to be used along with the cg_nutanix_vm_create
  2. # ansible role for provisioning VMs on a Nutanix cluster. Such a file should be created
  3. # with the proper values and called by your main playbook.
  4. # This is a tilde-separated-values file containing the list of VMs to be created.
  5. # In the example below:
  6. # vm_name => VM's Name
  7. # ip => VM's IP address
  8. # subnet_name => VM's subnet
  9. # image_name => Name of the disk image used to create the VM
  10. # num_vcpu => Number of vCPU sockets for the VM
  11. # memory_mib => VM's memory size in MiB
  12. # disk_list_mib => Additional VM disk sizes in MiB (comma-separated)
  13. #
  14. # NOTE: All attributes are mandatory, except disk_list_mib. If you do not wish
  15. # to add disks to the VM, keep the placeholder empty (~~)
  16. # Example 1: A VM with 2 vCPUs/4 GB RAM and 2 added disks
  17. vm_name~ip~subnet_name~image_name~num_vcpu~memory_mib~disk_list_mib
  18. testvm~10.1.1.10~webnet~rhel8-image~2~4096~10240,20480
  19. # Example 2: A VM with 2 vCPUs/4 GB RAM and no added disks
  20. vm_name~ip~subnet_name~image_name~num_vcpu~memory_mib~disk_list_mib
  21. testvm~10.1.1.10~webnet~rhel8-image~2~4096~~