We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48c81c9 commit b37f99aCopy full SHA for b37f99a
kasmvnc/main.tf
@@ -14,6 +14,12 @@ variable "agent_id" {
14
description = "The ID of a Coder agent."
15
}
16
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
+
23
variable "port" {
24
type = number
25
description = "The port to run KasmVNC on."
@@ -49,7 +55,7 @@ resource "coder_script" "kasm_vnc" {
49
55
50
56
resource "coder_app" "kasm_vnc" {
51
57
agent_id = var.agent_id
52
- slug = "kasm-vnc"
58
+ slug = var.slug
53
59
display_name = "kasmVNC"
54
60
url = "http://localhost:${var.port}"
61
icon = "/icon/kasmvnc.svg"
0 commit comments