Vm

jxinging/Vm/Vsphere

Terraform Module HCL VSPHERE

Terraform vSphere module for provisioning Virtual Machines

Install
module "Vm" {
source = "jxinging/Vm/Vsphere"
version = "3.5.0"
}
plain text: /constructs/tfmod-jxinging-vm-vsphere/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform vSphere Module !Terraform Version ![TF Registry](https://registry.terraform.io/modules/Terraform-VMWare-Modules/vm/vsphere/) ![Changelog](https://github.com/Terraform-VMWare-Modules/terraform-vsphere-vm/releases) ![License: MIT](LICENSE) For Virtual Machine Provisioning with (Linux/Windows) customization. Based on Terraform v0.13 and up, this module includes most of the advanced features available in resource vsphere_virtual_machine. Deploys (Single/Multiple) Virtual Machines to your vSphere environment This Terraform module deploys single or multiple virtual machines of type (Linux/Windows) with the following features: - Ability to specify Linux or Windows VM customization. - Ability to add multiple network cards for the VM - Ability to assign tags and custom variables. - Abilit

Inputs (50)
NameTypeDescriptionDefault
nested_hv_enabledboolEnable nested hardware virtualization on this virtual machine, facilitating nest required
enable_loggingboolEnable logging of virtual machine events to a log file stored in the virtual mac required
scsi_bus_sharingstringscsi_bus_sharing mode, acceptable values physicalSharing,virtualSharing,noSharin required
staticvmnamestringStatic name of the virtual machin. When this option is used VM can not scale out required
cpu_reservationstringThe amount of CPU (in MHz) that this virtual machine is guaranteed. required
vmgatewaystringVM gateway to set during provisioning. required
dns_suffix_listlist(string)A list of DNS search domains to add to the DNS configuration on the virtual mach required
vm_depends_onanyAdd any external depend on module here like vm_depends_on = [module.fw_core01.fi required
custom_attributesmap(any)Map of custom attribute ids to attribute value strings to set for virtual machin required
windomainstringThe domain to join for this virtual machine. One of this or workgroup must be in required
auto_logon_countstringSpecifies how many times the VM should auto-logon the Administrator account when required
time_zonestringThe new time zone for the virtual machine. This is a numeric, sysprep-dictated, required
latency_sensitivitystringControls the scheduling delay of the virtual machine. Use a higher sensitivity f required
tagsmap(any)The names of any tags to attach to this resource. They must already exist. required
run_oncelist(string)List of Comamnd to run during first logon (Automatic login set to 1). required
vmrpstringCluster resource pool that VM will be deployed to. you use following to choose d required
dns_server_listlist(string) required
cpu_performance_counters_enabledboolEnable CPU performance counters on this virtual machine. required
cpu_hot_add_enabledboolAllow CPUs to be added to this virtual machine while it is running. required
auto_logonbool Specifies whether or not the VM automatically logs on as Administrator. Default required
networkmap(list(string))Define PortGroup and IPs/CIDR for each VM. If no CIDR provided, the subnet mask {}
scsi_typestringscsi_controller type, acceptable values lsilogic,pvscsi.""
vmnameformatstringvmname format. default is set to 2 decimal with leading 0. example: %03d for 3 d"%02d"
cpu_share_countnumberThe number of CPU shares allocated to the virtual machine when the cpu_share_lev4000
io_share_countlist(number)The share count for this disk when the share level is custom.[]
template_storage_policy_idlist(any)List of UUIDs of the storage policy to assign to the template disk.[]
scsi_controllernumberscsi_controller number for the main OS disk.0
instancesnumbernumber of instances you want deploy from the template.1
is_windows_imageboolBoolean flag to notify when the custom image is windows based.false
io_reservationlist(number)The I/O reservation (guarantee) that this disk has, in IOPS. The default is no r[]
disk_modelist(string)The disk mode for the disk.[]
disk_datastorestringDefine where the OS disk should be stored.""
ipv4submasklist(any)ipv4 Subnet mask. Warning: The order must follow the alphabetic order from var.n[ "24" ]
ram_sizenumberVM RAM size in megabytes.4096
timeoutnumberThe timeout, in minutes, to wait for the virtual machine clone to complete.30
… and 10 more inputs
Outputs (7)
VM — VM Names
ip — default ip address of the deployed VM
guest-ip — all the registered ip address of the VM
uuid — UUID of the VM in vSphere
disk — Disks of the deployed VM
DC_ID — id of vSphere Datacenter
ResPool_ID — Resource Pool id
Resources (1)
vsphere_virtual_machine
Details
FrameworkTerraform Module
LanguageHCL
Version3.5.0
Cloud VSPHERE
Total downloads113
Inputs50
Outputs7
Resources1
Namespacejxinging
Updated