From aa758af5ce65b424d737487438b29877e4fee923 Mon Sep 17 00:00:00 2001 From: mafyuh Date: Mon, 14 Oct 2024 16:15:52 +0000 Subject: [PATCH] test recreate kasm --- terraform/kasm.tf | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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