Skip to content

Instantly share code, notes, and snippets.

@thesefer
Created May 7, 2024 14:41
Show Gist options
  • Save thesefer/609fcb7334031c7d9d60699b5c1cf2c8 to your computer and use it in GitHub Desktop.
Save thesefer/609fcb7334031c7d9d60699b5c1cf2c8 to your computer and use it in GitHub Desktop.
tlp88 terraform apply
vsphere_virtual_disk.PersistentDataDisk[0]: Refreshing state... [id=TLP88 - Testinstance - PersistentDisk/tlp88_persistent.vmdk]
data.vsphere_datacenter.datacenter: Reading...
data.vsphere_custom_attribute.owner_name: Reading...
data.vsphere_custom_attribute.admin_contact: Reading...
data.vsphere_custom_attribute.admin_contact: Read complete after 0s [id=310]
data.vsphere_custom_attribute.owner_name: Read complete after 0s [id=304]
data.vsphere_datacenter.datacenter: Read complete after 0s [id=datacenter-49618]
data.vsphere_compute_cluster.compute_cluster[0]: Reading...
data.vsphere_network.networks[0]: Reading...
data.vsphere_datastore.datastores[0]: Reading...
data.vsphere_virtual_machine.template[0]: Reading...
data.vsphere_host.esxi_hosts[0]: Reading...
data.vsphere_network.networks[0]: Read complete after 0s [id=network-49634]
data.vsphere_datastore.datastores[0]: Read complete after 0s [id=datastore-349728]
data.vsphere_compute_cluster.compute_cluster[0]: Read complete after 1s [id=domain-c345684]
data.vsphere_virtual_machine.template[0]: Read complete after 1s [id=42152b35-6ab4-8e14-4251-3afa13092c42]
data.vsphere_host.esxi_hosts[0]: Read complete after 1s [id=host-345706]
vsphere_virtual_machine.vms[0]: Refreshing state... [id=421571d3-cfdc-c964-9f3a-817a6d3818c8]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# vsphere_virtual_disk.PersistentDataDisk[0] will be created
+ resource "vsphere_virtual_disk" "PersistentDataDisk" {
+ adapter_type = "lsiLogic"
+ create_directories = true
+ datacenter = "LP"
+ datastore = "S-LP11"
+ id = (known after apply)
+ size = 50
+ type = "eagerZeroedThick"
+ vmdk_path = "TLP88 - Testinstance - PersistentDisk/tlp88_persistent.vmdk"
}
# vsphere_virtual_machine.vms[0] will be created
+ resource "vsphere_virtual_machine" "vms" {
+ annotation = "Testinstance Ansible"
+ boot_retry_delay = 10000
+ change_version = (known after apply)
+ cpu_limit = -1
+ cpu_share_count = (known after apply)
+ cpu_share_level = "normal"
+ custom_attributes = {
+ "304" = "Max Mustermann"
+ "310" = "Max Mustermann"
}
+ datastore_id = "datastore-349728"
+ default_ip_address = (known after apply)
+ enable_disk_uuid = true
+ ept_rvi_mode = "automatic"
+ firmware = "efi"
+ force_power_off = true
+ guest_id = "ubuntu64Guest"
+ guest_ip_addresses = (known after apply)
+ hardware_version = (known after apply)
+ host_system_id = "host-345706"
+ hv_mode = "hvAuto"
+ id = (known after apply)
+ ide_controller_count = 2
+ imported = (known after apply)
+ latency_sensitivity = "normal"
+ memory = 2048
+ memory_limit = -1
+ memory_share_count = (known after apply)
+ memory_share_level = "normal"
+ migrate_wait_timeout = 30
+ moid = (known after apply)
+ name = "TLP88 - Testinstance"
+ num_cores_per_socket = 1
+ num_cpus = 2
+ poweron_timeout = 300
+ reboot_required = (known after apply)
+ resource_pool_id = "resgroup-345685"
+ run_tools_scripts_after_power_on = true
+ run_tools_scripts_after_resume = true
+ run_tools_scripts_before_guest_shutdown = true
+ run_tools_scripts_before_guest_standby = true
+ sata_controller_count = 0
+ scsi_bus_sharing = "noSharing"
+ scsi_controller_count = 1
+ scsi_type = "pvscsi"
+ shutdown_wait_timeout = 3
+ storage_policy_id = (known after apply)
+ swap_placement_policy = "inherit"
+ uuid = (known after apply)
+ vapp_transport = (known after apply)
+ vmware_tools_status = (known after apply)
+ vmx_path = (known after apply)
+ wait_for_guest_ip_timeout = 0
+ wait_for_guest_net_routable = true
+ wait_for_guest_net_timeout = 5
+ clone {
+ template_uuid = "42152b35-6ab4-8e14-4251-3afa13092c42"
+ timeout = 30
+ customize {
+ dns_server_list = [
+ "84.5",
+ "2.166",
]
+ ipv4_gateway = "84.1"
+ timeout = 10
+ linux_options {
+ domain = "do.main"
+ host_name = "tlp88"
+ hw_clock_utc = true
}
+ network_interface {
+ ipv4_address = "84.88"
+ ipv4_netmask = 23
}
}
}
+ disk {
+ attach = false
+ controller_type = "scsi"
+ datastore_id = "<computed>"
+ device_address = (known after apply)
+ disk_mode = "persistent"
+ disk_sharing = "sharingNone"
+ eagerly_scrub = true
+ io_limit = -1
+ io_reservation = 0
+ io_share_count = 0
+ io_share_level = "normal"
+ keep_on_remove = false
+ key = 0
+ label = "disk0"
+ path = (known after apply)
+ size = 50
+ storage_policy_id = (known after apply)
+ thin_provisioned = false
+ unit_number = 0
+ uuid = (known after apply)
+ write_through = false
}
+ disk {
+ attach = true
+ controller_type = "scsi"
+ datastore_id = "datastore-349728"
+ device_address = (known after apply)
+ disk_mode = "persistent"
+ disk_sharing = "sharingNone"
+ eagerly_scrub = false
+ io_limit = -1
+ io_reservation = 0
+ io_share_count = 0
+ io_share_level = "normal"
+ keep_on_remove = false
+ key = 0
+ label = "disk1"
+ path = "TLP88 - Testinstance - PersistentDisk/tlp88_persistent.vmdk"
+ storage_policy_id = (known after apply)
+ thin_provisioned = true
+ unit_number = 1
+ uuid = (known after apply)
+ write_through = false
}
+ network_interface {
+ adapter_type = "vmxnet3"
+ bandwidth_limit = -1
+ bandwidth_reservation = 0
+ bandwidth_share_count = (known after apply)
+ bandwidth_share_level = "normal"
+ device_address = (known after apply)
+ key = (known after apply)
+ mac_address = (known after apply)
+ network_id = "network-49634"
}
}
Plan: 2 to add, 0 to change, 0 to destroy.
Changes to Outputs:
~ instance_id_name_mapping = {
- "421571d3-cfdc-c964-9f3a-817a6d3818c8" = "TLP88 - Testinstance"
} -> (known after apply)
~ instance_name_ip_mapping = {
- "TLP88 - Testinstance" = "84.88"
}
Do you want to perform these actions in workspace "tlp88"?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
vsphere_virtual_disk.PersistentDataDisk[0]: Creating...
vsphere_virtual_disk.PersistentDataDisk[0]: Still creating... [10s elapsed]
vsphere_virtual_disk.PersistentDataDisk[0]: Still creating... [20s elapsed]
vsphere_virtual_disk.PersistentDataDisk[0]: Still creating... [30s elapsed]
vsphere_virtual_disk.PersistentDataDisk[0]: Creation complete after 38s [id=TLP88 - Testinstance - PersistentDisk/tlp88_persistent.vmdk]
vsphere_virtual_machine.vms[0]: Creating...
vsphere_virtual_machine.vms[0]: Still creating... [10s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [20s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [30s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [40s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [50s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [1m0s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [1m10s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [1m20s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [1m30s elapsed]
vsphere_virtual_machine.vms[0]: Still creating... [1m40s elapsed]
vsphere_virtual_machine.vms[0]: Creation complete after 1m41s [id=42157d03-a6d6-7b20-b1b8-38396253b5ad]
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
Outputs:
instance_id_name_mapping = {
"42157d03-a6d6-7b20-b1b8-38396253b5ad" = "TLP88 - Testinstance"
}
instance_name_ip_mapping = {
"TLP88 - Testinstance" = "84.88"
}
vm_location = {
"TLP88 - Testinstance" = ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment