virtualmachine
Aristocrat-B2B/virtualmachine/nutanix
A module that builds virtual machines on Nutanix hypervisor
terraform-nutanix-virtualmachine A terraform module to create one or more virtual machines on Nutanix. Available through the Terraform registry. Usage example A full example leveraging other community modules is contained in the examples/. ``hcl terraform { required_providers { nutanix = { source = "nutanix/nutanix" version = "1.2.0" } } } provider "nutanix" { username = "admin" password = "ItsASecret!" endpoint = "10.0.0.10" # prism endpoint insecure = true } module "vm_create" { source = "terraform-nutanix-virtualmachine" version = "1.0.0" subnet_name = "Primary" nutanix_cluster_name = "PHX-POC236" vm_name = ["terraform-vm-module-test"] vm_memory = 4096 cpu = { "num_vcpus_per_socket" : 2, "num_sockets" : 2 } additional_disk_enabled = true additional_disk_list = { disk1 = 10240, disk2 = 1
| Name | Type | Description | Default |
|---|---|---|---|
| nutanix_cluster_name | string | The name of the nutanix cluster | required |
| subnet_name | string | The name of the nutanix subnet to deploy into | required |
| image_name | string | Name of the uploaded image to use for the VM | required |
| additional_disk_enabled | bool | Controls if virtual machine resource should be created | false |
| additional_disk_list | map(any) | map of additional disks to add in MiB | {
"disk1": 10,
"disk2": 20
} |
| project_name | string | Project name - set to empty to use default project | "" |
| project_id | string | Project id - set to empty to use default project | "" |
| vm_name | list(string) | List of virtual machine names | [
"example-vm"
] |
| ssh_password | string | ssh password | "WeakPassword" |
| ip_address | list(any) | list of IP addresses | [] |
| static_ip_enabled | bool | Assign static IP or DHCP assigned IP | false |
| cfn_init_user_data | string | Yaml formatted cfn_init user_data | "" |
| sysprep_user_data | map(any) | Sysprep formated user_data | {} |
| additional_nic_subnet_names | list(any) | A list of subnet names that should be used to add additional NICs from | [] |
| cpu | map(any) | Map detailing num vcpu and num sockets | {
"num_sockets": 2,
"num_vcpus_per_s |
| os_type | string | Either linux or windows | "linux" |
| auto_sethostname | bool | Should we automatically generate a hostname based on var.vm_name | true |
| ssh_user | string | ssh user | "nutanix" |
| vm_memory | number | Memory in Mb to allocate to VM | 512 |
nic_list — List of nic statusesproject_id — project_id generated by looking up var.project_namehost_inventory — Map of hosts and their metadata