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

Skip to content

Commit de74147

Browse files
committed
feat: add code-server and jetbrains gateway modules
1 parent 968c52b commit de74147

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

examples/templates/do-linux/main.tf

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ terraform {
99
}
1010
}
1111

12-
provider "coder" {
13-
}
12+
provider "coder" {}
1413

1514
variable "step1_do_project_id" {
1615
type = string
@@ -264,6 +263,38 @@ resource "coder_agent" "main" {
264263
}
265264
}
266265

266+
# See https://registry.coder.com/modules/code-server
267+
module "code-server" {
268+
count = data.coder_workspace.me.start_count
269+
source = "registry.coder.com/modules/code-server/coder"
270+
271+
# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
272+
version = ">= 1.0.0"
273+
274+
agent_id = coder_agent.main.id
275+
order = 1
276+
}
277+
278+
# See https://registry.coder.com/modules/jetbrains-gateway
279+
module "jetbrains_gateway" {
280+
count = data.coder_workspace.me.start_count
281+
source = "registry.coder.com/modules/jetbrains-gateway/coder"
282+
283+
# JetBrains IDEs to make available for the user to select
284+
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
285+
default = "IU"
286+
287+
# Default folder to open when starting a JetBrains IDE
288+
folder = "/home/coder"
289+
290+
# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
291+
version = ">= 1.0.0"
292+
293+
agent_id = coder_agent.main.id
294+
agent_name = "main"
295+
order = 2
296+
}
297+
267298
resource "digitalocean_volume" "home_volume" {
268299
region = data.coder_parameter.region.value
269300
name = "coder-${data.coder_workspace.me.id}-home"

0 commit comments

Comments
 (0)