Files
Terraform/nas.tf
tolerryan 79bb758a17 syntax
2025-08-22 00:39:16 -05:00

82 lines
1.9 KiB
HCL

resource "proxmox_vm_qemu" "nas" {
# VM General Settings
target_node = "ryuk"
vmid = "301"
name = "nas"
description = "nas storage"
# VM Advanced General Settings
onboot = true
# VM OS Settings
clone = "Debian12Template"
# VM System Settings
# agent = 1
# VM CPU Settings
cou {
vcpus = 6
sockets = 1
}
# VM Memory Settings
memory = 4024
disks {
scsi {
scsi0 {
disk {
backup = true
cache = "none"
asyncio = "native"
discard = true
emulatessd = true
iothread = true
mbps_r_burst = 0.0
mbps_r_concurrent = 0.0
mbps_wr_burst = 0.0
mbps_wr_concurrent = 0.0
replicate = true
size = "42G"
storage = "local-lvm"
}
}
}
virtio {
virtio0 {
#bulk disk
disk {
asyncio = "native"
backup = "false"
iothread = "true"
size = "8T"
storage = "Ceph"
format = "raw"
}
}
}
}
# VM Network Settings
network {
id = 1
bridge = "vmbr0"
model = "virtio"
}
# VM Cloud-Init Settings
os_type = "cloud-init"
# (Optional) IP Address and Gateway
ipconfig0 = "ip=192.168.0.50/24,gw=192.168.0.1"
# (Optional) Default User
ciuser = "root"
# (Optional) Add your SSH KEY
sshkeys = <<EOF
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop
EOF
}