Grail migration to new cluster

This commit is contained in:
tolerryan
2025-01-20 22:44:45 -06:00
parent bcb1717722
commit fe2afcba49
3 changed files with 46 additions and 61 deletions

View File

@@ -1,59 +1,49 @@
resource "proxmox_vm_qemu" "grail" {
target_node = "pve"
name = "grail-tf"
clone = "Debian12-8Template"
agent = 0
cores = 10
memory = 4096
#storage = "Junk2"
bootdisk = "scsi0"
scsihw = "virtio-scsi-single"
target_node = "ryuk"
hostname = "grail-tf"
vmid = 218
#start = true
ostemplate = "cephfs:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
password = "terraform"
unprivileged = false
cores = 6
memory = 4096
swap = 1024
start = true
tags = "terraform"
define_connection_info = true
os_type = "ubuntu"
os_network_config = "ubuntu"
nameserver = "192.168.0.24"
ipconfig0 = "ip=192.168.0.57/24,gw=192.168.0.1"
#ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
disks{
scsi{
scsi0{
disk{
storage = "nvme"
asyncio = "threads"
discard = true
iothread = true
size = "42G"
emulatessd = true
}
}
}
ide {
ide2 {
cloudinit {
storage = "Ceph"
}
}
}
}
features {
nesting = true
}
#mountpoint{
# key = "0"
# slot = 0
# storage = "Ceph"
# mp = "/data"
# size = "400G"
#}
rootfs {
storage = "local-lvm"
size = "42G"
}
mountpoint{
key = "1"
slot = 1
storage = "Ceph"
mp = "/data"
size = "10T"
}
mountpoint{
key = "2"
slot = 2
storage = "Ceph"
mp = "/downloads"
size = "5T"
}
network {
# Name is set automatically based on position in file
# name = "eth0"
model = "virtio"
bridge = "vmbr0"
firewall = false
name = "eth0"
bridge = "vmbr0"
ip = "192.168.0.57/24"
gw = "192.168.0.1"
}
provisioner "local-exec" {