62 lines
1.4 KiB
HCL
62 lines
1.4 KiB
HCL
resource "proxmox_vm_qemu" "grail" {
|
|
target_node = "pve"
|
|
name = "grail-tf"
|
|
clone = "Debian12-8Template"
|
|
agent = 0
|
|
cores = 10
|
|
memory = 4096
|
|
#storage = "Junk2"
|
|
bootdisk = "virtio0"
|
|
vmid = 218
|
|
#start = true
|
|
tags = "terraform"
|
|
define_connection_info = true
|
|
os_type = "ubuntu"
|
|
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{
|
|
virtio{
|
|
virtio0{
|
|
disk{
|
|
discard = true
|
|
# #emulatessd = 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"
|
|
# }
|
|
#}
|
|
|
|
} |