Skip to content

Commit aa758af

Browse files
committedOct 14, 2024
test recreate kasm
1 parent 4a90744 commit aa758af

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
 

‎terraform/kasm.tf

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "proxmox_virtual_environment_vm" "Kasm" {
3636
# VM Disk Settings
3737
disk {
3838
datastore_id = "local-lvm"
39-
size = 151
39+
size = 149
4040
interface = "scsi0"
4141
}
4242

@@ -59,4 +59,18 @@ resource "proxmox_virtual_environment_vm" "Kasm" {
5959
initialization[0].user_data_file_id
6060
]
6161
}
62+
63+
provisioner "remote-exec" {
64+
inline = [
65+
"cd /home/mafyuh/iac/docker/kasm",
66+
"git pull",
67+
"docker compose up -d"
68+
]
69+
connection {
70+
type = "ssh"
71+
user = "mafyuh"
72+
private_key = file("/home/mafyuh/.ssh/id_rsa")
73+
host = var.kasm_ssh_ip
74+
}
75+
}
6276
}

0 commit comments

Comments
 (0)
Please sign in to comment.