Skip to content

Commit a6b03bb

Browse files
blink-so[bot]AtifUpdate
andcommitted
Update jetbrains module to new simplified format
Replace jetbrains_gateway module blocks with simplified jetbrains module: - Change module name from 'jetbrains_gateway' to 'jetbrains' - Use simplified configuration with only required parameters - Set version to 1.0.3 - Remove complex IDE selection and configuration options Co-authored-by: AtifUpdate <[email protected]>
1 parent bda33cf commit a6b03bb

File tree

11 files changed

+66
-187
lines changed

11 files changed

+66
-187
lines changed

registry/coder-labs/templates/tasks-docker/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -321,23 +321,12 @@ module "cursor" {
321321
agent_id = coder_agent.main.id
322322
}
323323

324-
module "jetbrains_gateway" {
325-
count = data.coder_workspace.me.start_count
326-
source = "registry.coder.com/modules/coder/jetbrains/coder"
327-
328-
# JetBrains IDEs to make available for the user to select
329-
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
330-
default = "IU"
331-
332-
# Default folder to open when starting a JetBrains IDE
333-
folder = "/home/coder/projects"
334-
335-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
336-
version = "~> 1.0"
337-
338-
agent_id = coder_agent.main.id
339-
agent_name = "main"
340-
order = 2
324+
module "jetbrains" {
325+
count = data.coder_workspace.me.start_count
326+
source = "registry.coder.com/modules/coder/jetbrains/coder"
327+
version = "1.0.3"
328+
agent_id = coder_agent.main.id
329+
folder = "/home/coder"
341330
}
342331

343332
resource "docker_volume" "home_volume" {

registry/coder/templates/aws-linux/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -206,23 +206,12 @@ module "code-server" {
206206
}
207207

208208
# See https://registry.coder.com/modules/coder/jetbrains
209-
module "jetbrains_gateway" {
210-
count = data.coder_workspace.me.start_count
211-
source = "registry.coder.com/modules/coder/jetbrains/coder"
212-
213-
# JetBrains IDEs to make available for the user to select
214-
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
215-
default = "IU"
216-
217-
# Default folder to open when starting a JetBrains IDE
218-
folder = "/home/coder"
219-
220-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
221-
version = "~> 1.0"
222-
223-
agent_id = coder_agent.dev[0].id
224-
agent_name = "dev"
225-
order = 2
209+
module "jetbrains" {
210+
count = data.coder_workspace.me.start_count
211+
source = "registry.coder.com/modules/coder/jetbrains/coder"
212+
version = "1.0.3"
213+
agent_id = coder_agent.dev[0].id
214+
folder = "/home/coder"
226215
}
227216

228217
locals {

registry/coder/templates/azure-linux/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -149,23 +149,12 @@ module "code-server" {
149149
}
150150

151151
# See https://registry.coder.com/modules/coder/jetbrains
152-
module "jetbrains_gateway" {
153-
count = data.coder_workspace.me.start_count
154-
source = "registry.coder.com/modules/coder/jetbrains/coder"
155-
156-
# JetBrains IDEs to make available for the user to select
157-
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
158-
default = "IU"
159-
160-
# Default folder to open when starting a JetBrains IDE
161-
folder = "/home/coder"
162-
163-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
164-
version = "~> 1.0"
165-
166-
agent_id = coder_agent.main.id
167-
agent_name = "main"
168-
order = 2
152+
module "jetbrains" {
153+
count = data.coder_workspace.me.start_count
154+
source = "registry.coder.com/modules/coder/jetbrains/coder"
155+
version = "1.0.3"
156+
agent_id = coder_agent.main.id
157+
folder = "/home/coder"
169158
}
170159

171160
locals {

registry/coder/templates/digitalocean-linux/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -277,23 +277,12 @@ module "code-server" {
277277
}
278278

279279
# See https://registry.coder.com/modules/coder/jetbrains
280-
module "jetbrains_gateway" {
281-
count = data.coder_workspace.me.start_count
282-
source = "registry.coder.com/modules/coder/jetbrains/coder"
283-
284-
# JetBrains IDEs to make available for the user to select
285-
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
286-
default = "IU"
287-
288-
# Default folder to open when starting a JetBrains IDE
289-
folder = "/home/coder"
290-
291-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
292-
version = "~> 1.0"
293-
294-
agent_id = coder_agent.main.id
295-
agent_name = "main"
296-
order = 2
280+
module "jetbrains" {
281+
count = data.coder_workspace.me.start_count
282+
source = "registry.coder.com/modules/coder/jetbrains/coder"
283+
version = "1.0.3"
284+
agent_id = coder_agent.main.id
285+
folder = "/home/coder"
297286
}
298287

299288
resource "digitalocean_volume" "home_volume" {

registry/coder/templates/docker-devcontainer/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -335,23 +335,12 @@ module "code-server" {
335335
}
336336

337337
# See https://registry.coder.com/modules/coder/jetbrains
338-
module "jetbrains_gateway" {
339-
count = data.coder_workspace.me.start_count
340-
source = "registry.coder.com/modules/coder/jetbrains/coder"
341-
342-
# JetBrains IDEs to make available for the user to select
343-
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
344-
default = "IU"
345-
346-
# Default folder to open when starting a JetBrains IDE
347-
folder = "/workspaces"
348-
349-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
350-
version = "~> 1.0"
351-
352-
agent_id = coder_agent.main.id
353-
agent_name = "main"
354-
order = 2
338+
module "jetbrains" {
339+
count = data.coder_workspace.me.start_count
340+
source = "registry.coder.com/modules/coder/jetbrains/coder"
341+
version = "1.0.3"
342+
agent_id = coder_agent.main.id
343+
folder = "/home/coder"
355344
}
356345

357346
resource "coder_metadata" "container_info" {

registry/coder/templates/docker/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -134,23 +134,12 @@ module "code-server" {
134134
}
135135

136136
# See https://registry.coder.com/modules/coder/jetbrains
137-
module "jetbrains_gateway" {
138-
count = data.coder_workspace.me.start_count
139-
source = "registry.coder.com/modules/coder/jetbrains/coder"
140-
141-
# JetBrains IDEs to make available for the user to select
142-
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
143-
default = "IU"
144-
145-
# Default folder to open when starting a JetBrains IDE
146-
folder = "/home/coder"
147-
148-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
149-
version = "~> 1.0"
150-
151-
agent_id = coder_agent.main.id
152-
agent_name = "main"
153-
order = 2
137+
module "jetbrains" {
138+
count = data.coder_workspace.me.start_count
139+
source = "registry.coder.com/modules/coder/jetbrains/coder"
140+
version = "1.0.3"
141+
agent_id = coder_agent.main.id
142+
folder = "/home/coder"
154143
}
155144

156145
resource "docker_volume" "home_volume" {

registry/coder/templates/gcp-devcontainer/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -296,23 +296,12 @@ module "code-server" {
296296
}
297297

298298
# See https://registry.coder.com/modules/coder/jetbrains
299-
module "jetbrains_gateway" {
300-
count = data.coder_workspace.me.start_count
301-
source = "registry.coder.com/coder/jetbrains/coder"
302-
303-
# JetBrains IDEs to make available for the user to select
304-
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
305-
default = "IU"
306-
307-
# Default folder to open when starting a JetBrains IDE
308-
folder = "/workspaces"
309-
310-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
311-
version = "~> 1.0"
312-
313-
agent_id = coder_agent.main.id
314-
agent_name = "main"
315-
order = 2
299+
module "jetbrains" {
300+
count = data.coder_workspace.me.start_count
301+
source = "registry.coder.com/modules/coder/jetbrains/coder"
302+
version = "1.0.3"
303+
agent_id = coder_agent.main.id
304+
folder = "/home/coder"
316305
}
317306

318307
# Create metadata for the workspace and home disk.

registry/coder/templates/gcp-linux/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,12 @@ module "code-server" {
104104
}
105105

106106
# See https://registry.coder.com/modules/coder/jetbrains
107-
module "jetbrains_gateway" {
108-
count = data.coder_workspace.me.start_count
109-
source = "registry.coder.com/modules/coder/jetbrains/coder"
110-
111-
# JetBrains IDEs to make available for the user to select
112-
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
113-
default = "IU"
114-
115-
# Default folder to open when starting a JetBrains IDE
116-
folder = "/home/coder"
117-
118-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
119-
version = "~> 1.0"
120-
121-
agent_id = coder_agent.main.id
122-
agent_name = "main"
123-
order = 2
107+
module "jetbrains" {
108+
count = data.coder_workspace.me.start_count
109+
source = "registry.coder.com/modules/coder/jetbrains/coder"
110+
version = "1.0.3"
111+
agent_id = coder_agent.main.id
112+
folder = "/home/coder"
124113
}
125114

126115
resource "google_compute_instance" "dev" {

registry/coder/templates/gcp-vm-container/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,12 @@ module "code-server" {
5757
}
5858

5959
# See https://registry.coder.com/modules/coder/jetbrains
60-
module "jetbrains_gateway" {
61-
count = data.coder_workspace.me.start_count
62-
source = "registry.coder.com/modules/coder/jetbrains/coder"
63-
64-
# JetBrains IDEs to make available for the user to select
65-
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
66-
default = "IU"
67-
68-
# Default folder to open when starting a JetBrains IDE
69-
folder = "/home/coder"
70-
71-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
72-
version = "~> 1.0"
73-
74-
agent_id = coder_agent.main.id
75-
agent_name = "main"
76-
order = 2
60+
module "jetbrains" {
61+
count = data.coder_workspace.me.start_count
62+
source = "registry.coder.com/modules/coder/jetbrains/coder"
63+
version = "1.0.3"
64+
agent_id = coder_agent.main.id
65+
folder = "/home/coder"
7766
}
7867

7968
# See https://registry.terraform.io/modules/terraform-google-modules/container-vm

registry/coder/templates/kubernetes-devcontainer/main.tf

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -427,23 +427,12 @@ module "code-server" {
427427
}
428428

429429
# See https://registry.coder.com/modules/coder/jetbrains
430-
module "jetbrains_gateway" {
431-
count = data.coder_workspace.me.start_count
432-
source = "registry.coder.com/modules/coder/jetbrains/coder"
433-
434-
# JetBrains IDEs to make available for the user to select
435-
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
436-
default = "IU"
437-
438-
# Default folder to open when starting a JetBrains IDE
439-
folder = "/home/coder"
440-
441-
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
442-
version = "~> 1.0"
443-
444-
agent_id = coder_agent.main.id
445-
agent_name = "main"
446-
order = 2
430+
module "jetbrains" {
431+
count = data.coder_workspace.me.start_count
432+
source = "registry.coder.com/modules/coder/jetbrains/coder"
433+
version = "1.0.3"
434+
agent_id = coder_agent.main.id
435+
folder = "/home/coder"
447436
}
448437

449438
resource "coder_metadata" "container_info" {

0 commit comments

Comments
 (0)