Files
Terraform/grail.tf
2024-11-17 23:20:20 -06:00

61 lines
1.3 KiB
HCL

resource "proxmox_vm_qemu" "grail" {
target_node = "pve"
name = "grail-tf"
clone = "Debian12Template"
agent = 0
cores = 10
memory = 4096
#storage = "Junk2"
bootdisk = "scsi0"
vmid = 218
#start = true
tags = "terraform"
define_connection_info = true
os_network_config = "ubuntu"
nameserver = "192.168.0.24"
ipconfig0 = "gw=192.168.0.1,ip=192.168.0.57/24"
# ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
#features {
# nesting = true
#}
disks{
scsi {
scsi{
disk{
discard = true
emuatessd = true
asyncio = "threads"
size = "32G"
storage = "nvme"
}
}
}
}
#mountpoint{
# key = "0"
# slot = 0
# storage = "Cephtest"
# mp = "/data"
# size = "400G"
#}
network {
# Name is set automatically based on position in file
# name = "eth0"
model = "virtio"
bridge = "vmbr0"
firewall = false
#ip = "192.168.0.57/24"
#gw = "192.168.0.1"
}
#provisioner "local-exec" {
# command = "./.ansible.d/setup.sh $IP"
# environment = {
# IP = "192.168.0.57"
# }
#}
}