github.com/openshift/installer@v1.4.17/upi/vsphere/vm/main.tf (about) 1 resource "vsphere_virtual_machine" "vm" { 2 name = var.vmname 3 4 resource_pool_id = var.resource_pool_id 5 datastore_id = var.datastore_id 6 num_cpus = var.num_cpus 7 memory = var.memory 8 guest_id = var.guest_id 9 folder = var.folder_id 10 enable_disk_uuid = "true" 11 12 wait_for_guest_net_timeout = "0" 13 wait_for_guest_net_routable = "false" 14 15 network_interface { 16 network_id = var.network_id 17 } 18 19 disk { 20 label = "disk0" 21 size = 60 22 thin_provisioned = var.disk_thin_provisioned 23 } 24 25 clone { 26 template_uuid = var.template_uuid 27 } 28 29 extra_config = { 30 "guestinfo.ignition.config.data" = base64encode(var.ignition) 31 "guestinfo.ignition.config.data.encoding" = "base64" 32 "guestinfo.afterburn.initrd.network-kargs" = "ip=${var.ipaddress}::${cidrhost(var.machine_cidr, 1)}:${cidrnetmask(var.machine_cidr)}:${var.vmname}:ens192:none:${join(":", var.dns_addresses)}" 33 "stealclock.enable" = "TRUE" 34 } 35 } 36