From 70020d8b8c930cf63eda46a2ac67092f5c48c3ed Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 14 Nov 2024 19:54:58 +0500 Subject: [PATCH] Support multiple default IDEs in JetBrains Gateway --- jetbrains-gateway/README.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/jetbrains-gateway/README.md b/jetbrains-gateway/README.md index 00beb83f..0910f7cc 100644 --- a/jetbrains-gateway/README.md +++ b/jetbrains-gateway/README.md @@ -19,7 +19,7 @@ module "jetbrains_gateway" { agent_name = "example" folder = "/home/coder/example" jetbrains_ides = ["CL", "GO", "IU", "PY", "WS"] - default = "GO" + default = ["GO"] } ``` @@ -37,7 +37,7 @@ module "jetbrains_gateway" { agent_name = "example" folder = "/home/coder/example" jetbrains_ides = ["GO", "WS"] - default = "GO" + default = ["GO"] } ``` @@ -51,7 +51,7 @@ module "jetbrains_gateway" { agent_name = "example" folder = "/home/coder/example" jetbrains_ides = ["GO", "WS"] - default = "GO" + default = ["GO"] latest = true } ``` @@ -66,7 +66,7 @@ module "jetbrains_gateway" { agent_name = "example" folder = "/home/coder/example" jetbrains_ides = ["GO", "WS"] - default = "GO" + default = ["GO"] latest = true channel = "eap" } @@ -86,7 +86,22 @@ module "jetbrains_gateway" { jetbrains_ides = ["GO", "WS"] releases_base_link = "https://releases.internal.site/" download_base_link = "https://download.internal.site/" - default = "GO" + default = ["GO"] +} +``` + +### Add multiple IDEs + +**Note:** This removes the choice of IDE from the user. + +```tf +module "jetbrains_gateway" { + source = "registry.coder.com/modules/jetbrains-gateway/coder" + version = "1.0.23" + agent_id = coder_agent.example.id + agent_name = "example" + folder = "/home/coder/example" + default = ["GO", "WS"] } ```