Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e63a26

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 d630736 commit 2e63a26

File tree

12 files changed

+72
-201
lines changed

12 files changed

+72
-201
lines changed

docs/admin/templates/extending-templates/jetbrains-preinstall.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,12 @@ Add the following command to your template's `startup_script`:
4343
If you are using our [jetbrains](https://registry.coder.com/modules/coder/jetbrains) module, you can configure it by adding the following snippet to your template:
4444

4545
```tf
46-
module "jetbrains_gateway" {
47-
count = data.coder_workspace.me.start_count
48-
source = "registry.coder.com/modules/jetbrains/coder"
49-
version = "1.0.29"
50-
agent_id = coder_agent.main.id
51-
folder = "/home/coder/example"
52-
jetbrains_ides = ["IU"]
53-
default = "IU"
54-
latest = false
55-
jetbrains_ide_versions = {
56-
"IU" = {
57-
build_number = "251.25410.129"
58-
version = "2025.1"
59-
}
60-
}
61-
}
62-
63-
resource "coder_agent" "main" {
64-
...
65-
startup_script = <<-EOF
66-
~/JetBrains/*/bin/remote-dev-server.sh registerBackendLocationForGateway
67-
EOF
46+
module "jetbrains" {
47+
count = data.coder_workspace.me.start_count
48+
source = "registry.coder.com/modules/jetbrains/coder"
49+
version = "1.0.3"
50+
agent_id = coder_agent.main.id
51+
folder = "/home/coder/example"
6852
}
6953
```
7054

dogfood/coder-envbuilder/main.tf

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,12 @@ module "code-server" {
135135
auto_install_extensions = true
136136
}
137137

138-
module "jetbrains_gateway" {
139-
source = "dev.registry.coder.com/coder/jetbrains/coder"
140-
version = "1.1.1"
141-
agent_id = coder_agent.dev.id
142-
agent_name = "dev"
143-
folder = local.repo_dir
144-
jetbrains_ides = ["GO", "WS"]
145-
default = "GO"
146-
latest = true
138+
module "jetbrains" {
139+
count = data.coder_workspace.me.start_count
140+
source = "dev.registry.coder.com/coder/jetbrains/coder"
141+
version = "1.0.3"
142+
agent_id = coder_agent.dev.id
143+
folder = local.repo_dir
147144
}
148145

149146
module "filebrowser" {

examples/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/coder/jetbrains/coder"
212+
version = "1.0.3"
213+
agent_id = coder_agent.dev[0].id
214+
folder = "/home/coder"
226215
}
227216

228217
locals {

examples/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/coder/jetbrains/coder"
155+
version = "1.0.3"
156+
agent_id = coder_agent.main.id
157+
folder = "/home/coder"
169158
}
170159

171160
locals {

examples/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/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" {

examples/templates/docker-envbuilder/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/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" {

examples/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/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" {

examples/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/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.

examples/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/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" {

examples/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/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

0 commit comments

Comments
 (0)