Skip to content

Commit 45d9caf

Browse files
committed
s/tabs/spaces
1 parent d73abd0 commit 45d9caf

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

docs/admin/templates/extending-templates/parameters.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -325,46 +325,47 @@ Use `prebuilds` to define how many instances of the template should be stored as
325325
When a developer selects the associated template, the workspace will be assigned to that developer and the server will build a new prebuilt workspace.
326326
327327
<details><summary>Expand for an example</summary>
328+
328329
```tf
329330
data "coder_workspace_preset" "goland-gpu" {
330331
name = "GoLand with GPU"
331332
parameters = {
332-
"machine_type" = "n1-standard-1"
333-
"attach_gpu" = "true"
334-
"gcp_region" = "europe-west4-c"
335-
"jetbrains_ide" = "GO"
333+
"machine_type" = "n1-standard-1"
334+
"attach_gpu" = "true"
335+
"gcp_region" = "europe-west4-c"
336+
"jetbrains_ide" = "GO"
336337
}
337338
prebuilds {
338339
instances = 1
339340
}
340341
}
341342
342343
data "coder_parameter" "machine_type" {
343-
name = "machine_type"
344-
display_name = "Machine Type"
345-
type = "string"
346-
default = "n1-standard-2"
344+
name = "machine_type"
345+
display_name = "Machine Type"
346+
type = "string"
347+
default = "n1-standard-2"
347348
}
348349
349350
data "coder_workspace_preset" "attach_gpu" {
350-
name = "attach_gpu"
351-
display_name = "Attach GPU?"
352-
type = "bool"
353-
default = "false"
351+
name = "attach_gpu"
352+
display_name = "Attach GPU?"
353+
type = "bool"
354+
default = "false"
354355
}
355356
356357
data "coder_workspace_preset" "gcp_region" {
357-
name = "gcp_region"
358-
display_name = "Machine Type"
359-
type = "string"
360-
default = "n1-standard-2"
358+
name = "gcp_region"
359+
display_name = "Machine Type"
360+
type = "string"
361+
default = "n1-standard-2"
361362
}
362363
363364
data "coder_workspace_preset" "jetbrains_ide" {
364-
name = "jetbrains_ide"
365-
display_name = "Machine Type"
366-
type = "string"
367-
default = "n1-standard-2"
365+
name = "jetbrains_ide"
366+
display_name = "Machine Type"
367+
type = "string"
368+
default = "n1-standard-2"
368369
}
369370
```
370371

0 commit comments

Comments
 (0)