Skip to content

Commit b37f99a

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

kasmvnc/main.tf

+7-1
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)