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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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]>
  • Loading branch information
blink-so[bot] and AtifUpdate committed Aug 27, 2025
commit 2e63a26441edbd79cb5bb3c36cfa6bce8d448a64
28 changes: 6 additions & 22 deletions docs/admin/templates/extending-templates/jetbrains-preinstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,12 @@ Add the following command to your template's `startup_script`:
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:

```tf
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains/coder"
version = "1.0.29"
agent_id = coder_agent.main.id
folder = "/home/coder/example"
jetbrains_ides = ["IU"]
default = "IU"
latest = false
jetbrains_ide_versions = {
"IU" = {
build_number = "251.25410.129"
version = "2025.1"
}
}
}

resource "coder_agent" "main" {
...
startup_script = <<-EOF
~/JetBrains/*/bin/remote-dev-server.sh registerBackendLocationForGateway
EOF
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder/example"
}
```

Expand Down
15 changes: 6 additions & 9 deletions dogfood/coder-envbuilder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,12 @@ module "code-server" {
auto_install_extensions = true
}

module "jetbrains_gateway" {
source = "dev.registry.coder.com/coder/jetbrains/coder"
version = "1.1.1"
agent_id = coder_agent.dev.id
agent_name = "dev"
folder = local.repo_dir
jetbrains_ides = ["GO", "WS"]
default = "GO"
latest = true
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.dev.id
folder = local.repo_dir
}

module "filebrowser" {
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/aws-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -206,23 +206,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# 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.
version = "~> 1.0"

agent_id = coder_agent.dev[0].id
agent_name = "dev"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.dev[0].id
folder = "/home/coder"
}

locals {
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/azure-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

locals {
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/digitalocean-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -277,23 +277,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

resource "digitalocean_volume" "home_volume" {
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/docker-envbuilder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -335,23 +335,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/workspaces"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

resource "coder_metadata" "container_info" {
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/docker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

resource "docker_volume" "home_volume" {
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/gcp-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -296,23 +296,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/workspaces"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

# Create metadata for the workspace and home disk.
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/gcp-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

resource "google_compute_instance" "dev" {
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/gcp-vm-container/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

# See https://registry.terraform.io/modules/terraform-google-modules/container-vm
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/kubernetes-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -427,23 +427,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

resource "coder_metadata" "container_info" {
Expand Down
23 changes: 6 additions & 17 deletions examples/templates/kubernetes-envbox/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,12 @@ module "code-server" {
}

# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"

# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# 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.
version = "~> 1.0"

agent_id = coder_agent.main.id
agent_name = "main"
order = 2
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains/coder"
version = "1.0.3"
agent_id = coder_agent.main.id
folder = "/home/coder"
}

resource "kubernetes_persistent_volume_claim" "home" {
Expand Down
Loading