proxmox-terraform-bpg-freeb.../virtual_machines.tf

41 lines
728 B
HCL

resource "proxmox_virtual_environment_vm" "managed-vm33" {
name = "managed-vm33.boxybsd.com"
description = "Managed by Terraform"
tags = ["terraform"]
node_name = "virt01"
cpu {
cores = 1
}
memory {
dedicated = 2048
}
agent {
enabled = true
}
network_device {
bridge = "vmbr0"
}
disk {
datastore_id = "local-lvm"
file_id = proxmox_virtual_environment_file.freebsd14_cloud.id
interface = "scsi0"
size = 32
}
serial_device {}
initialization {
datastore_id = "local-lvm"
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
ip_config {
ipv4 {
address = "dhcp"
}
}
}
}