Skip to content

Commit

Permalink
Add slug variable to KasmVNC module
Browse files Browse the repository at this point in the history
  • Loading branch information
matifali committed Oct 17, 2024
1 parent 48c81c9 commit b37f99a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kasmvnc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ variable "agent_id" {
description = "The ID of a Coder agent."
}

variable "slug" {
type = string
description = "The slug for the coder_app. Allows resuing the module with the same template."
default = "kasmvnc"
}

variable "port" {
type = number
description = "The port to run KasmVNC on."
Expand Down Expand Up @@ -49,7 +55,7 @@ resource "coder_script" "kasm_vnc" {

resource "coder_app" "kasm_vnc" {
agent_id = var.agent_id
slug = "kasm-vnc"
slug = var.slug
display_name = "kasmVNC"
url = "http://localhost:${var.port}"
icon = "/icon/kasmvnc.svg"
Expand Down

0 comments on commit b37f99a

Please sign in to comment.