0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 11:02:59 +00:00
terraform-provider-proxmox/example/resource_virtual_environment_vm.tf
2019-12-26 23:01:43 +01:00

28 lines
493 B
HCL

resource "proxmox_virtual_environment_vm" "example" {
cloud_init {
dns {
server = "1.1.1.1"
}
ip_config {
ipv4 {
address = "dhcp"
}
}
user_account {
keys = ["${trimspace(tls_private_key.example.public_key_openssh)}"]
username = "ubuntu"
}
}
network_device {}
node_name = "${data.proxmox_virtual_environment_nodes.example.names[0]}"
}
resource "tls_private_key" "example" {
algorithm = "RSA"
rsa_bits = 2048
}