Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit b37f99a

Browse files
committed
Add slug variable to KasmVNC module
1 parent 48c81c9 commit b37f99a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

kasmvnc/main.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ variable "agent_id" {
1414
description = "The ID of a Coder agent."
1515
}
1616

17+
variable "slug" {
18+
type = string
19+
description = "The slug for the coder_app. Allows resuing the module with the same template."
20+
default = "kasmvnc"
21+
}
22+
1723
variable "port" {
1824
type = number
1925
description = "The port to run KasmVNC on."
@@ -49,7 +55,7 @@ resource "coder_script" "kasm_vnc" {
4955

5056
resource "coder_app" "kasm_vnc" {
5157
agent_id = var.agent_id
52-
slug = "kasm-vnc"
58+
slug = var.slug
5359
display_name = "kasmVNC"
5460
url = "http://localhost:${var.port}"
5561
icon = "/icon/kasmvnc.svg"

0 commit comments

Comments
 (0)