File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -245,15 +245,18 @@ Mirror registry modules in an internal Git repository:
245
245
246
246
1 . ** Download modules** from [ registry.coder.com] ( https://registry.coder.com ) while connected to the internet
247
247
2 . ** Store modules** in your internal Git repository:
248
- ```
248
+
249
+ ``` text
249
250
internal-registry/
250
251
├── modules/
251
252
│ ├── code-server/
252
253
│ ├── cursor/
253
254
│ └── vscode-web/
254
255
└── templates/
255
256
```
257
+
256
258
3 . ** Reference modules** using Git source addresses:
259
+
257
260
``` tf
258
261
module "code_server" {
259
262
source = "git::https://your-internal-git.com/coder-modules.git//modules/code-server?ref=v1.0.19"
@@ -269,6 +272,7 @@ Set up a private Terraform registry mirror:
269
272
1 . ** Configure a private registry** (such as Terraform Enterprise or Artifactory)
270
273
2 . ** Mirror modules** from the public registry to your private registry
271
274
3 . ** Update templates** to use custom source addresses:
275
+
272
276
``` tf
273
277
module "code_server" {
274
278
source = "your-registry.com/coder/code-server/coder"
@@ -283,6 +287,7 @@ Include modules directly in your template repositories:
283
287
284
288
1 . ** Download modules** and include them in your template repository
285
289
2 . ** Reference with relative paths** :
290
+
286
291
``` tf
287
292
module "code_server" {
288
293
source = "./modules/code-server" # Relative path to vendored module
You can’t perform that action at this time.
0 commit comments