virtualmachine

Aristocrat-B2B/virtualmachine/nutanix

Terraform Module HCL NUTANIX

A module that builds virtual machines on Nutanix hypervisor

Install
module "virtualmachine" {
source = "Aristocrat-B2B/virtualmachine/nutanix"
version = "2.0.0"
}
plain text: /constructs/tfmod-aristocrat-b2b-virtualmachine-nutanix/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (19)
NameTypeDescriptionDefault
nutanix_cluster_namestringThe name of the nutanix cluster required
subnet_namestringThe name of the nutanix subnet to deploy into required
image_namestringName of the uploaded image to use for the VM required
additional_disk_enabledboolControls if virtual machine resource should be createdfalse
additional_disk_listmap(any)map of additional disks to add in MiB{ "disk1": 10, "disk2": 20 }
project_namestringProject name - set to empty to use default project""
project_idstringProject id - set to empty to use default project""
vm_namelist(string)List of virtual machine names[ "example-vm" ]
ssh_passwordstringssh password"WeakPassword"
ip_addresslist(any)list of IP addresses[]
static_ip_enabledboolAssign static IP or DHCP assigned IPfalse
cfn_init_user_datastringYaml formatted cfn_init user_data""
sysprep_user_datamap(any)Sysprep formated user_data{}
additional_nic_subnet_nameslist(any)A list of subnet names that should be used to add additional NICs from[]
cpumap(any)Map detailing num vcpu and num sockets{ "num_sockets": 2, "num_vcpus_per_s
os_typestringEither linux or windows"linux"
auto_sethostnameboolShould we automatically generate a hostname based on var.vm_nametrue
ssh_userstringssh user"nutanix"
vm_memorynumberMemory in Mb to allocate to VM512
Outputs (3)
nic_list — List of nic statuses
project_id — project_id generated by looking up var.project_name
host_inventory — Map of hosts and their metadata
Resources (2)
null_resourcenutanix_virtual_machine
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud NUTANIX
★ Stars7
Forks7
Total downloads7.9k
Inputs19
Outputs3
Resources2
Examples4
LicenseMPL-2.0
NamespaceAristocrat-B2B
Updated