SHARE
TWEET

main.tf

a guest Jun 19th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. resource "vsphere_virtual_machine" "vm2" {
  3.   name             = "terraform-test2"
  4.   resource_pool_id = "${data.vsphere_resource_pool.pool.id}"
  5.   datastore_id     = "${data.vsphere_datastore.datastore.id}"
  6.  
  7.   num_cpus = 2
  8.   memory   = 1024
  9.   guest_id = "other3xLinux64Guest"
  10.   network_interface {
  11.     network_id = "${data.vsphere_network.network.id}"
  12.   }
  13.  
  14.   disk {
  15.     label = "disk0"
  16.     size  = 40
  17.   }
  18.  
  19.   cdrom {
  20.    datastore_id = "${data.vsphere_datastore.datastore.id}"
  21.   path         = "vmfs/volumes/datastore1/ubuntu-18.04-live-server-amd64.iso"
  22. }
  23.  
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top