Skip to content

chore: update module sources in templates to new format #18026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 12 additions & 12 deletions dogfood/coder-envbuilder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
}
docker = {
source = "kreuzwerker/docker"
version = "~> 3.0.0"
version = "~> 3.0"
}
envbuilder = {
source = "coder/envbuilder"
Expand Down Expand Up @@ -109,35 +109,35 @@ data "coder_workspace" "me" {}
data "coder_workspace_owner" "me" {}

module "slackme" {
source = "registry.coder.com/modules/slackme/coder"
source = "registry.coder.com/coder/slackme/coder"
version = "1.0.2"
agent_id = coder_agent.dev.id
auth_provider_id = "slack"
}

module "dotfiles" {
source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.15"
source = "registry.coder.com/coder/dotfiles/coder"
version = "1.0.29"
agent_id = coder_agent.dev.id
}

module "personalize" {
source = "registry.coder.com/modules/personalize/coder"
source = "registry.coder.com/coder/personalize/coder"
version = "1.0.2"
agent_id = coder_agent.dev.id
}

module "code-server" {
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.15"
source = "registry.coder.com/coder/code-server/coder"
version = "1.2.0"
agent_id = coder_agent.dev.id
folder = local.repo_dir
auto_install_extensions = true
}

module "jetbrains_gateway" {
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.13"
source = "registry.coder.com/coder/jetbrains-gateway/coder"
version = "1.1.1"
agent_id = coder_agent.dev.id
agent_name = "dev"
folder = local.repo_dir
Expand All @@ -147,13 +147,13 @@ module "jetbrains_gateway" {
}

module "filebrowser" {
source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.8"
source = "registry.coder.com/coder/filebrowser/coder"
version = "1.0.31"
agent_id = coder_agent.dev.id
}

module "coder-login" {
source = "registry.coder.com/modules/coder-login/coder"
source = "registry.coder.com/coder/coder-login/coder"
version = "1.0.15"
agent_id = coder_agent.dev.id
}
Expand Down
40 changes: 20 additions & 20 deletions dogfood/coder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -217,48 +217,48 @@ data "coder_workspace_tags" "tags" {

module "slackme" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/modules/slackme/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/slackme/coder"
version = "1.0.2"
agent_id = coder_agent.dev.id
auth_provider_id = "slack"
}

module "dotfiles" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/modules/dotfiles/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/dotfiles/coder"
version = "1.0.29"
agent_id = coder_agent.dev.id
}

module "git-clone" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/modules/git-clone/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/git-clone/coder"
version = "1.0.18"
agent_id = coder_agent.dev.id
url = "https://github.com/coder/coder"
base_dir = local.repo_base_dir
}

module "personalize" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/modules/personalize/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/personalize/coder"
version = "1.0.2"
agent_id = coder_agent.dev.id
}

module "code-server" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/modules/code-server/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/code-server/coder"
version = "1.2.0"
agent_id = coder_agent.dev.id
folder = local.repo_dir
auto_install_extensions = true
}

module "vscode-web" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vscode-web/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/vscode-web/coder"
version = "1.1.0"
agent_id = coder_agent.dev.id
folder = local.repo_dir
extensions = ["github.copilot"]
Expand All @@ -279,31 +279,31 @@ module "jetbrains" {

module "filebrowser" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/modules/filebrowser/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/filebrowser/coder"
version = "1.0.31"
agent_id = coder_agent.dev.id
agent_name = "dev"
}

module "coder-login" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/modules/coder-login/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/coder-login/coder"
version = "1.0.15"
agent_id = coder_agent.dev.id
}

module "cursor" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/modules/cursor/coder"
version = ">= 1.0.0"
source = "dev.registry.coder.com/coder/cursor/coder"
version = "1.1.0"
agent_id = coder_agent.dev.id
folder = local.repo_dir
}

module "windsurf" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/windsurf/coder"
version = ">= 1.0.0"
source = "registry.coder.com/coder/windsurf/coder"
version = "1.0.0"
agent_id = coder_agent.dev.id
folder = local.repo_dir
}
Expand Down
8 changes: 5 additions & 3 deletions examples/templates/aws-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,11 @@ resource "coder_metadata" "info" {
}
}

# See https://registry.coder.com/modules/coder/code-server
module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.18"
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/code-server/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
}
10 changes: 5 additions & 5 deletions examples/templates/aws-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ resource "coder_agent" "dev" {
}
}

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

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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
order = 1
Expand All @@ -217,8 +217,8 @@ module "jetbrains_gateway" {
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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"
Expand Down
24 changes: 12 additions & 12 deletions examples/templates/azure-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ terraform {
}
}

# See https://registry.coder.com/modules/azure-region
# See https://registry.coder.com/modules/coder/azure-region
module "azure_region" {
source = "registry.coder.com/modules/azure-region/coder"
source = "registry.coder.com/coder/azure-region/coder"

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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"

default = "eastus"
}
Expand Down Expand Up @@ -136,22 +136,22 @@ resource "coder_agent" "main" {
}
}

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

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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
order = 1
}

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

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
Expand All @@ -160,8 +160,8 @@ module "jetbrains_gateway" {
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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"
Expand Down
16 changes: 8 additions & 8 deletions examples/templates/azure-windows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ provider "azurerm" {
provider "coder" {}
data "coder_workspace" "me" {}

# See https://registry.coder.com/modules/azure-region
# See https://registry.coder.com/modules/coder/azure-region
module "azure_region" {
source = "registry.coder.com/modules/azure-region/coder"
source = "registry.coder.com/coder/azure-region/coder"

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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"

default = "eastus"
}

# See https://registry.coder.com/modules/windows-rdp
# See https://registry.coder.com/modules/coder/windows-rdp
module "windows_rdp" {
source = "registry.coder.com/modules/windows-rdp/coder"
source = "registry.coder.com/coder/windows-rdp/coder"

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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"

admin_username = local.admin_username
admin_password = random_password.admin_password.result
Expand Down
16 changes: 8 additions & 8 deletions examples/templates/digitalocean-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -264,22 +264,22 @@ resource "coder_agent" "main" {
}
}

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

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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
order = 1
}

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

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
Expand All @@ -288,8 +288,8 @@ module "jetbrains_gateway" {
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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"
Expand Down
16 changes: 8 additions & 8 deletions examples/templates/docker-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -322,22 +322,22 @@ resource "coder_agent" "main" {
}
}

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

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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
order = 1
}

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

# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
Expand All @@ -346,8 +346,8 @@ module "jetbrains_gateway" {
# Default folder to open when starting a JetBrains IDE
folder = "/workspaces"

# This ensures that the latest version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = ">= 1.0.0"
# 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"
Expand Down
Loading
Loading