Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created May 8, 2024 23:59
Show Gist options
  • Save gowatana/fcb154125777bea0933d8ec07f76745f to your computer and use it in GitHub Desktop.
Save gowatana/fcb154125777bea0933d8ec07f76745f to your computer and use it in GitHub Desktop.
10,14d9
< data "vsphere_datastore" "iso_datastore" {
< name = "datastore1"
< datacenter_id = data.vsphere_datacenter.datacenter.id
< }
<
24a20,24
> data "vsphere_virtual_machine" "template" {
> name = "photon-hw15-5.0_update-20231104"
> datacenter_id = data.vsphere_datacenter.datacenter.id
> }
>
32,36c32
< guest_id = "ubuntu64Guest"
< cdrom {
< datastore_id = data.vsphere_datastore.iso_datastore.id
< path = "ISO/Ubuntu-ja-22.04-desktop-amd64.iso"
< }
---
> guest_id = data.vsphere_virtual_machine.template.guest_id
38c34
< network_id = data.vsphere_network.network.id
---
> network_id = data.vsphere_network.network.id
39a36,38
> }
> clone {
> template_uuid = data.vsphere_virtual_machine.template.id
@gowatana
Copy link
Author

gowatana commented May 9, 2024

下記の投稿むけ。

Avi Load Balancer を Terraform で操作してみる。(vSphere といっしょに)
https://vm.gowatana.jp/entry/2024/05/09/235916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment