Files
Terraform/nas.tf
2025-02-05 23:45:18 -06:00

45 lines
897 B
HCL

resource "proxmox_vm_qemu" "nas" {
# VM General Settings
target_node = "ryuk"
vmid = "301"
name = "nas"
desc = "nas storage"
# VM Advanced General Settings
onboot = true
# VM OS Settings
clone = "Debian12Template"
# VM System Settings
# agent = 1
# VM CPU Settings
cores = 6
sockets = 1
cpu = "host"
# VM Memory Settings
memory = 4024
# VM Network Settings
network {
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
}