Skip to content

Instantly share code, notes, and snippets.

@gowatana gowatana/nutanix.tf
Created Dec 24, 2018

Embed
What would you like to do?
Terraform Nutanix Provider サンプル。
provider "nutanix" {
username = "admin"
password = "パスワード"
endpoint = "Prism アドレス"
insecure = true
port = 9440
}
resource "nutanix_virtual_machine" "vm01-tf" {
name = "vm01-tf"
description = "Terraform test VM."
num_vcpus_per_socket = 1
num_sockets = 1
memory_size_mib = 512
nic_list = [{
subnet_reference = [{
kind = "subnet"
uuid = "47226b9d-85b5-46ee-ab05-90274a8554d2"
}]
}]
disk_list = [{
# image like we're doing here
data_source_reference = [{
kind = "image"
uuid = "a73ebf41-ddc5-486b-977a-8e35bc70479f"
}]
}]
}
@gowatana

This comment has been minimized.

Copy link
Owner Author

commented Dec 24, 2018

下記の投稿むけ。

Nutanix CE / AHV に Terraform で VM 作成してみる。
http://blog.ntnx.jp/entry/2018/12/24/203033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.