diff --git a/terraform/kasm.tf b/terraform/kasm.tf index f48bc29..38a9290 100644 --- a/terraform/kasm.tf +++ b/terraform/kasm.tf @@ -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 + } +} } \ No newline at end of file