test recreate kasm
Some checks failed
OpenTofu Automation / deploy (push) Failing after 15s

This commit is contained in:
mafyuh 2024-10-14 16:15:52 +00:00
parent 4a90744993
commit aa758af5ce

View file

@ -36,7 +36,7 @@ resource "proxmox_virtual_environment_vm" "Kasm" {
# VM Disk Settings
disk {
datastore_id = "local-lvm"
size = 151
size = 149
interface = "scsi0"
}
@ -59,4 +59,18 @@ resource "proxmox_virtual_environment_vm" "Kasm" {
initialization[0].user_data_file_id
]
}
provisioner "remote-exec" {
inline = [
"cd /home/mafyuh/iac/docker/kasm",
"git pull",
"docker compose up -d"
]
connection {
type = "ssh"
user = "mafyuh"
private_key = file("/home/mafyuh/.ssh/id_rsa")
host = var.kasm_ssh_ip
}
}
}