Skip to content

Commit 5827219

Browse files
authored
chore: update module sources in templates to new format (#18026)
1 parent 24d68be commit 5827219

File tree

18 files changed

+176
-164
lines changed

18 files changed

+176
-164
lines changed

dogfood/coder-envbuilder/main.tf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ terraform {
55
}
66
docker = {
77
source = "kreuzwerker/docker"
8-
version = "~> 3.0.0"
8+
version = "~> 3.0"
99
}
1010
envbuilder = {
1111
source = "coder/envbuilder"
@@ -109,35 +109,35 @@ data "coder_workspace" "me" {}
109109
data "coder_workspace_owner" "me" {}
110110

111111
module "slackme" {
112-
source = "registry.coder.com/modules/slackme/coder"
112+
source = "registry.coder.com/coder/slackme/coder"
113113
version = "1.0.2"
114114
agent_id = coder_agent.dev.id
115115
auth_provider_id = "slack"
116116
}
117117

118118
module "dotfiles" {
119-
source = "registry.coder.com/modules/dotfiles/coder"
120-
version = "1.0.15"
119+
source = "registry.coder.com/coder/dotfiles/coder"
120+
version = "1.0.29"
121121
agent_id = coder_agent.dev.id
122122
}
123123

124124
module "personalize" {
125-
source = "registry.coder.com/modules/personalize/coder"
125+
source = "registry.coder.com/coder/personalize/coder"
126126
version = "1.0.2"
127127
agent_id = coder_agent.dev.id
128128
}
129129

130130
module "code-server" {
131-
source = "registry.coder.com/modules/code-server/coder"
132-
version = "1.0.15"
131+
source = "registry.coder.com/coder/code-server/coder"
132+
version = "1.2.0"
133133
agent_id = coder_agent.dev.id
134134
folder = local.repo_dir
135135
auto_install_extensions = true
136136
}
137137

138138
module "jetbrains_gateway" {
139-
source = "registry.coder.com/modules/jetbrains-gateway/coder"
140-
version = "1.0.13"
139+
source = "registry.coder.com/coder/jetbrains-gateway/coder"
140+
version = "1.1.1"
141141
agent_id = coder_agent.dev.id
142142
agent_name = "dev"
143143
folder = local.repo_dir
@@ -147,13 +147,13 @@ module "jetbrains_gateway" {
147147
}
148148

149149
module "filebrowser" {
150-
source = "registry.coder.com/modules/filebrowser/coder"
151-
version = "1.0.8"
150+
source = "registry.coder.com/coder/filebrowser/coder"
151+
version = "1.0.31"
152152
agent_id = coder_agent.dev.id
153153
}
154154

155155
module "coder-login" {
156-
source = "registry.coder.com/modules/coder-login/coder"
156+
source = "registry.coder.com/coder/coder-login/coder"
157157
version = "1.0.15"
158158
agent_id = coder_agent.dev.id
159159
}

dogfood/coder/main.tf

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -217,48 +217,48 @@ data "coder_workspace_tags" "tags" {
217217

218218
module "slackme" {
219219
count = data.coder_workspace.me.start_count
220-
source = "dev.registry.coder.com/modules/slackme/coder"
221-
version = ">= 1.0.0"
220+
source = "dev.registry.coder.com/coder/slackme/coder"
221+
version = "1.0.2"
222222
agent_id = coder_agent.dev.id
223223
auth_provider_id = "slack"
224224
}
225225

226226
module "dotfiles" {
227227
count = data.coder_workspace.me.start_count
228-
source = "dev.registry.coder.com/modules/dotfiles/coder"
229-
version = ">= 1.0.0"
228+
source = "dev.registry.coder.com/coder/dotfiles/coder"
229+
version = "1.0.29"
230230
agent_id = coder_agent.dev.id
231231
}
232232

233233
module "git-clone" {
234234
count = data.coder_workspace.me.start_count
235-
source = "dev.registry.coder.com/modules/git-clone/coder"
236-
version = ">= 1.0.0"
235+
source = "dev.registry.coder.com/coder/git-clone/coder"
236+
version = "1.0.18"
237237
agent_id = coder_agent.dev.id
238238
url = "https://github.com/coder/coder"
239239
base_dir = local.repo_base_dir
240240
}
241241

242242
module "personalize" {
243243
count = data.coder_workspace.me.start_count
244-
source = "dev.registry.coder.com/modules/personalize/coder"
245-
version = ">= 1.0.0"
244+
source = "dev.registry.coder.com/coder/personalize/coder"
245+
version = "1.0.2"
246246
agent_id = coder_agent.dev.id
247247
}
248248

249249
module "code-server" {
250250
count = data.coder_workspace.me.start_count
251-
source = "dev.registry.coder.com/modules/code-server/coder"
252-
version = ">= 1.0.0"
251+
source = "dev.registry.coder.com/coder/code-server/coder"
252+
version = "1.2.0"
253253
agent_id = coder_agent.dev.id
254254
folder = local.repo_dir
255255
auto_install_extensions = true
256256
}
257257

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

280280
module "filebrowser" {
281281
count = data.coder_workspace.me.start_count
282-
source = "dev.registry.coder.com/modules/filebrowser/coder"
283-
version = ">= 1.0.0"
282+
source = "dev.registry.coder.com/coder/filebrowser/coder"
283+
version = "1.0.31"
284284
agent_id = coder_agent.dev.id
285285
agent_name = "dev"
286286
}
287287

288288
module "coder-login" {
289289
count = data.coder_workspace.me.start_count
290-
source = "dev.registry.coder.com/modules/coder-login/coder"
291-
version = ">= 1.0.0"
290+
source = "dev.registry.coder.com/coder/coder-login/coder"
291+
version = "1.0.15"
292292
agent_id = coder_agent.dev.id
293293
}
294294

295295
module "cursor" {
296296
count = data.coder_workspace.me.start_count
297-
source = "dev.registry.coder.com/modules/cursor/coder"
298-
version = ">= 1.0.0"
297+
source = "dev.registry.coder.com/coder/cursor/coder"
298+
version = "1.1.0"
299299
agent_id = coder_agent.dev.id
300300
folder = local.repo_dir
301301
}
302302

303303
module "windsurf" {
304304
count = data.coder_workspace.me.start_count
305-
source = "registry.coder.com/modules/windsurf/coder"
306-
version = ">= 1.0.0"
305+
source = "registry.coder.com/coder/windsurf/coder"
306+
version = "1.0.0"
307307
agent_id = coder_agent.dev.id
308308
folder = local.repo_dir
309309
}

examples/templates/aws-devcontainer/main.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,11 @@ resource "coder_metadata" "info" {
321321
}
322322
}
323323

324+
# See https://registry.coder.com/modules/coder/code-server
324325
module "code-server" {
325-
count = data.coder_workspace.me.start_count
326-
source = "registry.coder.com/modules/code-server/coder"
327-
version = "1.0.18"
326+
count = data.coder_workspace.me.start_count
327+
source = "registry.coder.com/coder/code-server/coder"
328+
# 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.
329+
version = "~> 1.0"
328330
agent_id = coder_agent.dev[0].id
329331
}

examples/templates/aws-linux/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ resource "coder_agent" "dev" {
193193
}
194194
}
195195

196-
# See https://registry.coder.com/modules/code-server
196+
# See https://registry.coder.com/modules/coder/code-server
197197
module "code-server" {
198198
count = data.coder_workspace.me.start_count
199199
source = "registry.coder.com/modules/code-server/coder"
200200

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

204204
agent_id = coder_agent.dev[0].id
205205
order = 1
@@ -217,8 +217,8 @@ module "jetbrains_gateway" {
217217
# Default folder to open when starting a JetBrains IDE
218218
folder = "/home/coder"
219219

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

223223
agent_id = coder_agent.dev[0].id
224224
agent_name = "dev"

examples/templates/azure-linux/main.tf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ terraform {
1212
}
1313
}
1414

15-
# See https://registry.coder.com/modules/azure-region
15+
# See https://registry.coder.com/modules/coder/azure-region
1616
module "azure_region" {
17-
source = "registry.coder.com/modules/azure-region/coder"
17+
source = "registry.coder.com/coder/azure-region/coder"
1818

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

2222
default = "eastus"
2323
}
@@ -136,22 +136,22 @@ resource "coder_agent" "main" {
136136
}
137137
}
138138

139-
# See https://registry.coder.com/modules/code-server
139+
# See https://registry.coder.com/modules/coder/code-server
140140
module "code-server" {
141141
count = data.coder_workspace.me.start_count
142-
source = "registry.coder.com/modules/code-server/coder"
142+
source = "registry.coder.com/coder/code-server/coder"
143143

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

147147
agent_id = coder_agent.main.id
148148
order = 1
149149
}
150150

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

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

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

166166
agent_id = coder_agent.main.id
167167
agent_name = "main"

examples/templates/azure-windows/main.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ provider "azurerm" {
1616
provider "coder" {}
1717
data "coder_workspace" "me" {}
1818

19-
# See https://registry.coder.com/modules/azure-region
19+
# See https://registry.coder.com/modules/coder/azure-region
2020
module "azure_region" {
21-
source = "registry.coder.com/modules/azure-region/coder"
21+
source = "registry.coder.com/coder/azure-region/coder"
2222

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

2626
default = "eastus"
2727
}
2828

29-
# See https://registry.coder.com/modules/windows-rdp
29+
# See https://registry.coder.com/modules/coder/windows-rdp
3030
module "windows_rdp" {
31-
source = "registry.coder.com/modules/windows-rdp/coder"
31+
source = "registry.coder.com/coder/windows-rdp/coder"
3232

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

3636
admin_username = local.admin_username
3737
admin_password = random_password.admin_password.result

examples/templates/digitalocean-linux/main.tf

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

267-
# See https://registry.coder.com/modules/code-server
267+
# See https://registry.coder.com/modules/coder/code-server
268268
module "code-server" {
269269
count = data.coder_workspace.me.start_count
270-
source = "registry.coder.com/modules/code-server/coder"
270+
source = "registry.coder.com/coder/code-server/coder"
271271

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"
272+
# 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.
273+
version = "~> 1.0"
274274

275275
agent_id = coder_agent.main.id
276276
order = 1
277277
}
278278

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

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

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"
291+
# 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.
292+
version = "~> 1.0"
293293

294294
agent_id = coder_agent.main.id
295295
agent_name = "main"

examples/templates/docker-devcontainer/main.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,22 +322,22 @@ resource "coder_agent" "main" {
322322
}
323323
}
324324

325-
# See https://registry.coder.com/modules/code-server
325+
# See https://registry.coder.com/modules/coder/code-server
326326
module "code-server" {
327327
count = data.coder_workspace.me.start_count
328-
source = "registry.coder.com/modules/code-server/coder"
328+
source = "registry.coder.com/coder/code-server/coder"
329329

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

333333
agent_id = coder_agent.main.id
334334
order = 1
335335
}
336336

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

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

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

352352
agent_id = coder_agent.main.id
353353
agent_name = "main"

0 commit comments

Comments
 (0)