Skip to content

Commit 8e0dfcd

Browse files
authored
feat(jetbrains-gateway): add slug variable (#322)
1 parent 9752bf8 commit 8e0dfcd

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

jetbrains-gateway/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This module adds a JetBrains Gateway Button to open any workspace with a single
1414
```tf
1515
module "jetbrains_gateway" {
1616
source = "registry.coder.com/modules/jetbrains-gateway/coder"
17-
version = "1.0.20"
17+
version = "1.0.21"
1818
agent_id = coder_agent.example.id
1919
agent_name = "example"
2020
folder = "/home/coder/example"
@@ -32,7 +32,7 @@ module "jetbrains_gateway" {
3232
```tf
3333
module "jetbrains_gateway" {
3434
source = "registry.coder.com/modules/jetbrains-gateway/coder"
35-
version = "1.0.20"
35+
version = "1.0.21"
3636
agent_id = coder_agent.example.id
3737
agent_name = "example"
3838
folder = "/home/coder/example"
@@ -46,7 +46,7 @@ module "jetbrains_gateway" {
4646
```tf
4747
module "jetbrains_gateway" {
4848
source = "registry.coder.com/modules/jetbrains-gateway/coder"
49-
version = "1.0.20"
49+
version = "1.0.21"
5050
agent_id = coder_agent.example.id
5151
agent_name = "example"
5252
folder = "/home/coder/example"
@@ -61,7 +61,7 @@ module "jetbrains_gateway" {
6161
```tf
6262
module "jetbrains_gateway" {
6363
source = "registry.coder.com/modules/jetbrains-gateway/coder"
64-
version = "1.0.20"
64+
version = "1.0.21"
6565
agent_id = coder_agent.example.id
6666
agent_name = "example"
6767
folder = "/home/coder/example"

jetbrains-gateway/main.tf

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ variable "agent_id" {
1818
description = "The ID of a Coder agent."
1919
}
2020

21+
variable "slug" {
22+
type = string
23+
description = "The slug for the coder_app. Allows resuing the module with the same template."
24+
default = "gateway"
25+
}
26+
2127
variable "agent_name" {
2228
type = string
2329
description = "Agent name."
@@ -247,7 +253,7 @@ data "coder_workspace_owner" "me" {}
247253

248254
resource "coder_app" "gateway" {
249255
agent_id = var.agent_id
250-
slug = "gateway"
256+
slug = var.slug
251257
display_name = local.display_name
252258
icon = local.icon
253259
external = true

0 commit comments

Comments
 (0)