diff --git a/kasmvnc/README.md b/kasmvnc/README.md index 0e0487b..5d00c72 100644 --- a/kasmvnc/README.md +++ b/kasmvnc/README.md @@ -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 } - ``` diff --git a/kasmvnc/main.tf b/kasmvnc/main.tf index 75ef44a..b28cdff 100644 --- a/kasmvnc/main.tf +++ b/kasmvnc/main.tf @@ -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 }