rename version to kasm_version

pull/250/head
Muhammad Atif Ali 1 year ago
parent 2318f31f94
commit 6009778c31

@ -9,32 +9,29 @@ tags: [helper, vnc, desktop]
# KasmVNC
Automatically install [KasmVNC](https://kasmweb.com/kasmvnc) in a workspace, and create an app to access it via the dashboard.
Automatically install [KasmVNC](https://kasmweb.com/kasmvnc) in a workspace, and create an app to access it via the dashboard. Add latest version of KasmVNC with [`lxde`](https://www.lxde.org/) desktop environment:
```tf
module "kasmvnc" {
source = "registry.coder.com/modules/kasmvnc/coder"
version = "1.0.15"
agent_id = coder_agent.example.id
}
```
> **Note:** This module only works on debian-based workspaces.
## Examples
1. Add latest version of KasmVNC with [`lxde`](https://www.lxde.org/) desktop environment:
```hcl
module "kasmvnc" {
source = "registry.coder.com/modules/kasmvnc/coder"
version = "1.0.15"
agent_id = coder_agent.example.id
}
```
2. Add specific version of KasmVNC with [`mate`](https://mate-desktop.org/) desktop environment and custom port:
1. Add specific version of KasmVNC with [`mate`](https://mate-desktop.org/) desktop environment and custom port:
```hcl
```tf
module "kasmvnc" {
source = "registry.coder.com/modules/kasmvnc/coder"
agent_id = coder_agent.example.id
version = "1.0.15"
kasm_version = "1.3.1"
desktop_environment = "mate"
port = 6080
}
```

@ -26,7 +26,7 @@ variable "desktop_environment" {
default = "lxde"
}
variable "version" {
variable "kasm_version" {
type = string
description = "Version of KasmVNC to install."
default = "1.3.1"
@ -39,7 +39,7 @@ resource "coder_script" "kasm_vnc" {
script = templatefile("${path.module}/run.sh", {
PORT : var.port,
DESKTOP_ENVIRONMENT : var.desktop_environment,
VERSION : var.version
VERSION : var.kasm_version
})
run_on_start = true
}

Loading…
Cancel
Save