This commit is contained in:
parent
4a90744993
commit
aa758af5ce
1 changed files with 15 additions and 1 deletions
|
@ -36,7 +36,7 @@ resource "proxmox_virtual_environment_vm" "Kasm" {
|
||||||
# VM Disk Settings
|
# VM Disk Settings
|
||||||
disk {
|
disk {
|
||||||
datastore_id = "local-lvm"
|
datastore_id = "local-lvm"
|
||||||
size = 151
|
size = 149
|
||||||
interface = "scsi0"
|
interface = "scsi0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,4 +59,18 @@ resource "proxmox_virtual_environment_vm" "Kasm" {
|
||||||
initialization[0].user_data_file_id
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue