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

Skip to content

Commit 2fb3b09

Browse files
committed
feat: add code-server and jetbrains gateway modules
1 parent 8659694 commit 2fb3b09

File tree

1 file changed

+32
-0
lines changed
  • examples/templates/digitalocean-linux

1 file changed

+32
-0
lines changed

examples/templates/digitalocean-linux/main.tf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,38 @@ resource "coder_agent" "main" {
264264
}
265265
}
266266

267+
# See https://registry.coder.com/modules/code-server
268+
module "code-server" {
269+
count = data.coder_workspace.me.start_count
270+
source = "registry.coder.com/modules/code-server/coder"
271+
272+
# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
273+
version = ">= 1.0.0"
274+
275+
agent_id = coder_agent.main.id
276+
order = 1
277+
}
278+
279+
# See https://registry.coder.com/modules/jetbrains-gateway
280+
module "jetbrains_gateway" {
281+
count = data.coder_workspace.me.start_count
282+
source = "registry.coder.com/modules/jetbrains-gateway/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 version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
292+
version = ">= 1.0.0"
293+
294+
agent_id = coder_agent.main.id
295+
agent_name = "main"
296+
order = 2
297+
}
298+
267299
resource "digitalocean_volume" "home_volume" {
268300
region = data.coder_parameter.region.value
269301
name = "coder-${data.coder_workspace.me.id}-home"

0 commit comments

Comments
 (0)