Update jetbrains-gateway module references to coder/jetbrains (#396)
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> Co-authored-by: Atif Ali <atif@coder.com>
This commit is contained in:
parent
901043bb01
commit
7e53098bea
@ -24,6 +24,7 @@ module "claude-code" {
|
|||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "2.0.0"
|
version = "2.0.0"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
folder = "/home/coder/projects"
|
folder = "/home/coder/projects"
|
||||||
install_claude_code = true
|
install_claude_code = true
|
||||||
claude_code_version = "latest"
|
claude_code_version = "latest"
|
||||||
@ -45,6 +46,7 @@ variable "anthropic_api_key" {
|
|||||||
}
|
}
|
||||||
resource "coder_env" "anthropic_api_key" {
|
resource "coder_env" "anthropic_api_key" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
name = "CODER_MCP_CLAUDE_API_KEY"
|
name = "CODER_MCP_CLAUDE_API_KEY"
|
||||||
value = var.anthropic_api_key
|
value = var.anthropic_api_key
|
||||||
}
|
}
|
||||||
@ -175,16 +177,19 @@ data "coder_parameter" "preview_port" {
|
|||||||
# Other variables for Claude Code
|
# Other variables for Claude Code
|
||||||
resource "coder_env" "claude_task_prompt" {
|
resource "coder_env" "claude_task_prompt" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
name = "CODER_MCP_CLAUDE_TASK_PROMPT"
|
name = "CODER_MCP_CLAUDE_TASK_PROMPT"
|
||||||
value = data.coder_parameter.ai_prompt.value
|
value = data.coder_parameter.ai_prompt.value
|
||||||
}
|
}
|
||||||
resource "coder_env" "app_status_slug" {
|
resource "coder_env" "app_status_slug" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
name = "CODER_MCP_APP_STATUS_SLUG"
|
name = "CODER_MCP_APP_STATUS_SLUG"
|
||||||
value = "ccw"
|
value = "ccw"
|
||||||
}
|
}
|
||||||
resource "coder_env" "claude_system_prompt" {
|
resource "coder_env" "claude_system_prompt" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
name = "CODER_MCP_CLAUDE_SYSTEM_PROMPT"
|
name = "CODER_MCP_CLAUDE_SYSTEM_PROMPT"
|
||||||
value = data.coder_parameter.system_prompt.value
|
value = data.coder_parameter.system_prompt.value
|
||||||
}
|
}
|
||||||
@ -297,6 +302,7 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -305,6 +311,7 @@ module "vscode" {
|
|||||||
source = "registry.coder.com/coder/vscode-desktop/coder"
|
source = "registry.coder.com/coder/vscode-desktop/coder"
|
||||||
version = "1.1.0"
|
version = "1.1.0"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "windsurf" {
|
module "windsurf" {
|
||||||
@ -312,6 +319,7 @@ module "windsurf" {
|
|||||||
source = "registry.coder.com/coder/windsurf/coder"
|
source = "registry.coder.com/coder/windsurf/coder"
|
||||||
version = "1.1.0"
|
version = "1.1.0"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "cursor" {
|
module "cursor" {
|
||||||
@ -319,25 +327,16 @@ module "cursor" {
|
|||||||
source = "registry.coder.com/coder/cursor/coder"
|
source = "registry.coder.com/coder/cursor/coder"
|
||||||
version = "1.2.0"
|
version = "1.2.0"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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/projects"
|
|
||||||
|
|
||||||
# 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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/home/coder/projects"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "docker_volume" "home_volume" {
|
resource "docker_volume" "home_volume" {
|
||||||
@ -369,6 +368,7 @@ resource "docker_volume" "home_volume" {
|
|||||||
|
|
||||||
resource "coder_app" "preview" {
|
resource "coder_app" "preview" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
slug = "preview"
|
slug = "preview"
|
||||||
display_name = "Preview your app"
|
display_name = "Preview your app"
|
||||||
icon = "${data.coder_workspace.me.access_url}/emojis/1f50e.png"
|
icon = "${data.coder_workspace.me.access_url}/emojis/1f50e.png"
|
||||||
|
|||||||
@ -328,4 +328,5 @@ module "code-server" {
|
|||||||
# 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.
|
# 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"
|
version = "~> 1.0"
|
||||||
agent_id = coder_agent.dev[0].id
|
agent_id = coder_agent.dev[0].id
|
||||||
|
agent_name = "dev"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -202,27 +202,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.dev[0].id
|
agent_id = coder_agent.dev[0].id
|
||||||
|
agent_name = "dev"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/modules/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.dev[0].id
|
agent_id = coder_agent.dev[0].id
|
||||||
agent_name = "dev"
|
agent_name = "dev"
|
||||||
order = 2
|
folder = "/home/coder"
|
||||||
}
|
}
|
||||||
|
|
||||||
locals {
|
locals {
|
||||||
|
|||||||
@ -145,27 +145,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/home/coder"
|
||||||
}
|
}
|
||||||
|
|
||||||
locals {
|
locals {
|
||||||
|
|||||||
@ -37,6 +37,7 @@ module "windows_rdp" {
|
|||||||
admin_password = random_password.admin_password.result
|
admin_password = random_password.admin_password.result
|
||||||
|
|
||||||
agent_id = resource.coder_agent.main.id
|
agent_id = resource.coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
resource_id = null # Unused, to be removed in a future version
|
resource_id = null # Unused, to be removed in a future version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -273,27 +273,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/home/coder"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "digitalocean_volume" "home_volume" {
|
resource "digitalocean_volume" "home_volume" {
|
||||||
|
|||||||
@ -331,27 +331,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/workspaces"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "coder_metadata" "container_info" {
|
resource "coder_metadata" "container_info" {
|
||||||
|
|||||||
@ -130,27 +130,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/home/coder"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "docker_volume" "home_volume" {
|
resource "docker_volume" "home_volume" {
|
||||||
|
|||||||
@ -292,27 +292,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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 = "/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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/workspaces"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create metadata for the workspace and home disk.
|
# Create metadata for the workspace and home disk.
|
||||||
|
|||||||
@ -100,27 +100,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/home/coder"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_instance" "dev" {
|
resource "google_compute_instance" "dev" {
|
||||||
|
|||||||
@ -53,27 +53,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/home/coder"
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.terraform.io/modules/terraform-google-modules/container-vm
|
# See https://registry.terraform.io/modules/terraform-google-modules/container-vm
|
||||||
@ -122,6 +113,7 @@ resource "google_compute_instance" "dev" {
|
|||||||
resource "coder_agent_instance" "dev" {
|
resource "coder_agent_instance" "dev" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
instance_id = google_compute_instance.dev[0].instance_id
|
instance_id = google_compute_instance.dev[0].instance_id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -423,27 +423,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/home/coder"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "coder_metadata" "container_info" {
|
resource "coder_metadata" "container_info" {
|
||||||
|
|||||||
@ -107,27 +107,18 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# See https://registry.coder.com/modules/coder/jetbrains-gateway
|
# See https://registry.coder.com/modules/coder/jetbrains
|
||||||
module "jetbrains_gateway" {
|
module "jetbrains" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/jetbrains-gateway/coder"
|
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"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
agent_name = "main"
|
agent_name = "main"
|
||||||
order = 2
|
folder = "/home/coder"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "kubernetes_persistent_volume_claim" "home" {
|
resource "kubernetes_persistent_volume_claim" "home" {
|
||||||
|
|||||||
@ -177,6 +177,7 @@ resource "coder_agent" "main" {
|
|||||||
# code-server
|
# code-server
|
||||||
resource "coder_app" "code-server" {
|
resource "coder_app" "code-server" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
slug = "code-server"
|
slug = "code-server"
|
||||||
display_name = "code-server"
|
display_name = "code-server"
|
||||||
icon = "/icon/code.svg"
|
icon = "/icon/code.svg"
|
||||||
|
|||||||
@ -119,6 +119,7 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
order = 1
|
order = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -35,6 +35,7 @@ resource "coder_agent" "main" {
|
|||||||
# details: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/env
|
# details: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/env
|
||||||
resource "coder_env" "welcome_message" {
|
resource "coder_env" "welcome_message" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
name = "WELCOME_MESSAGE"
|
name = "WELCOME_MESSAGE"
|
||||||
value = "Welcome to your Coder workspace!"
|
value = "Welcome to your Coder workspace!"
|
||||||
}
|
}
|
||||||
@ -49,12 +50,14 @@ module "code-server" {
|
|||||||
version = "~> 1.0"
|
version = "~> 1.0"
|
||||||
|
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Runs a script at workspace start/stop or on a cron schedule
|
# Runs a script at workspace start/stop or on a cron schedule
|
||||||
# details: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/script
|
# details: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/script
|
||||||
resource "coder_script" "startup_script" {
|
resource "coder_script" "startup_script" {
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
agent_name = "main"
|
||||||
display_name = "Startup Script"
|
display_name = "Startup Script"
|
||||||
script = <<-EOF
|
script = <<-EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user