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 # 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:
> **Note:** This module only works on debian-based workspaces. ```tf
## Examples
1. Add latest version of KasmVNC with [`lxde`](https://www.lxde.org/) desktop environment:
```hcl
module "kasmvnc" { module "kasmvnc" {
source = "registry.coder.com/modules/kasmvnc/coder" source = "registry.coder.com/modules/kasmvnc/coder"
version = "1.0.15" version = "1.0.15"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
} }
``` ```
2. Add specific version of KasmVNC with [`mate`](https://mate-desktop.org/) desktop environment and custom port: > **Note:** This module only works on debian-based workspaces.
## Examples
```hcl 1. Add specific version of KasmVNC with [`mate`](https://mate-desktop.org/) desktop environment and custom port:
```tf
module "kasmvnc" { module "kasmvnc" {
source = "registry.coder.com/modules/kasmvnc/coder" source = "registry.coder.com/modules/kasmvnc/coder"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
version = "1.0.15" version = "1.0.15"
kasm_version = "1.3.1"
desktop_environment = "mate" desktop_environment = "mate"
port = 6080 port = 6080
} }
``` ```

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

Loading…
Cancel
Save