Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit d720a16

Browse files
authored
Merge branch 'coder:main' into dotfiles-root
2 parents a45d9ea + a9a58bf commit d720a16

File tree

32 files changed

+281
-234
lines changed

32 files changed

+281
-234
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ jobs:
3434
run: bun install
3535
- name: Format
3636
run: bun fmt:ci
37+
- name: typos-action
38+
uses: crate-ci/typos@v1.17.2
3739
- name: Lint
3840
run: bun lint

.sample/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: [helper]
1111

1212
<!-- Describes what this module does -->
1313

14-
```hcl
14+
```tf
1515
module "MODULE_NAME" {
1616
source = "registry.coder.com/modules/MODULE_NAME/coder"
1717
version = "1.0.0"
@@ -26,7 +26,7 @@ module "MODULE_NAME" {
2626

2727
Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
2828

29-
```hcl
29+
```tf
3030
module "MODULE_NAME" {
3131
source = "registry.coder.com/modules/MODULE_NAME/coder"
3232
version = "1.0.0"
@@ -43,7 +43,7 @@ Enter the `<author>.<name>` into the extensions array and code-server will autom
4343

4444
Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) file:
4545

46-
```hcl
46+
```tf
4747
module "MODULE_NAME" {
4848
source = "registry.coder.com/modules/MODULE_NAME/coder"
4949
version = "1.0.0"
@@ -59,7 +59,7 @@ module "MODULE_NAME" {
5959

6060
Run code-server in the background, don't fetch it from GitHub:
6161

62-
```hcl
62+
```tf
6363
module "MODULE_NAME" {
6464
source = "registry.coder.com/modules/MODULE_NAME/coder"
6565
version = "1.0.0"

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To create a new module, clone this repository and run:
44

55
```shell
6-
./new.sh MOUDLE_NAME
6+
./new.sh MODULE_NAME
77
```
88

99
## Testing a Module
@@ -19,7 +19,7 @@ $ bun test -t '<module>'
1919

2020
You can test a module locally by updating the source as follows
2121

22-
```hcl
22+
```tf
2323
module "example" {
2424
source = "git::https://github.com/<USERNAME>/<REPO>.git//<MODULE-NAME>?ref=<BRANCH-NAME>"
2525
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Modules extend Templates to create reusable components for your development envi
1414

1515
e.g.
1616

17-
```hcl
17+
```tf
1818
module "code-server" {
19-
source = "registry.coder.com/modules/code-server/coder"
20-
version = "1.0.0"
19+
source = "registry.coder.com/modules/code-server/coder"
20+
version = "1.0.0"
2121
agent_id = coder_agent.main.id
2222
}
2323
```

aws-region/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ the region closest to them.
1414

1515
Customize the preselected parameter value:
1616

17-
```hcl
17+
```tf
1818
module "aws-region" {
19-
source = "registry.coder.com/modules/aws-region/coder"
19+
source = "registry.coder.com/modules/aws-region/coder"
2020
version = "1.0.0"
2121
default = "us-east-1"
2222
}
@@ -34,16 +34,16 @@ provider "aws" {
3434

3535
Change the display name and icon for a region using the corresponding maps:
3636

37-
```hcl
37+
```tf
3838
module "aws-region" {
39-
source = "registry.coder.com/modules/aws-region/coder"
39+
source = "registry.coder.com/modules/aws-region/coder"
4040
version = "1.0.0"
4141
default = "ap-south-1"
4242
custom_names = {
43-
"ap-south-1": "Awesome Mumbai!"
43+
"ap-south-1" : "Awesome Mumbai!"
4444
}
4545
custom_icons = {
46-
"ap-south-1": "/emojis/1f33a.png"
46+
"ap-south-1" : "/emojis/1f33a.png"
4747
}
4848
}
4949
@@ -58,11 +58,11 @@ provider "aws" {
5858

5959
Hide the Asia Pacific regions Seoul and Osaka:
6060

61-
```hcl
61+
```tf
6262
module "aws-region" {
63-
source = "registry.coder.com/modules/aws-region/coder"
63+
source = "registry.coder.com/modules/aws-region/coder"
6464
version = "1.0.0"
65-
exclude = [ "ap-northeast-2", "ap-northeast-3" ]
65+
exclude = ["ap-northeast-2", "ap-northeast-3"]
6666
}
6767
6868
provider "aws" {

azure-region/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ tags: [helper, parameter, azure, regions]
1111

1212
This module adds a parameter with all Azure regions, allowing developers to select the region closest to them.
1313

14-
```hcl
14+
```tf
1515
module "azure_region" {
16-
source = "registry.coder.com/modules/azure-region/coder"
16+
source = "registry.coder.com/modules/azure-region/coder"
1717
version = "1.0.0"
1818
default = "eastus"
1919
}
@@ -31,15 +31,15 @@ resource "azurem_resource_group" "example" {
3131

3232
Change the display name and icon for a region using the corresponding maps:
3333

34-
```hcl
34+
```tf
3535
module "azure-region" {
36-
source = "registry.coder.com/modules/azure-region/coder"
36+
source = "registry.coder.com/modules/azure-region/coder"
3737
version = "1.0.0"
3838
custom_names = {
39-
"australia": "Go Australia!"
39+
"australia" : "Go Australia!"
4040
}
4141
custom_icons = {
42-
"australia": "/icons/smiley.svg"
42+
"australia" : "/icons/smiley.svg"
4343
}
4444
}
4545
@@ -54,9 +54,9 @@ resource "azurerm_resource_group" "example" {
5454

5555
Hide all regions in Australia except australiacentral:
5656

57-
```hcl
57+
```tf
5858
module "azure-region" {
59-
source = "registry.coder.com/modules/azure-region/coder"
59+
source = "registry.coder.com/modules/azure-region/coder"
6060
version = "1.0.0"
6161
exclude = [
6262
"australia",

code-server/README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ tags: [helper, ide, web]
1111

1212
Automatically install [code-server](https://github.com/coder/code-server) in a workspace, create an app to access it via the dashboard, install extensions, and pre-configure editor settings.
1313

14-
```hcl
14+
```tf
1515
module "code-server" {
16-
source = "registry.coder.com/modules/code-server/coder"
17-
version = "1.0.0"
16+
source = "registry.coder.com/modules/code-server/coder"
17+
version = "1.0.0"
1818
agent_id = coder_agent.example.id
1919
}
2020
```
@@ -25,7 +25,7 @@ module "code-server" {
2525

2626
### Pin Versions
2727

28-
```hcl
28+
```tf
2929
module "code-server" {
3030
source = "registry.coder.com/modules/code-server/coder"
3131
version = "1.0.0"
@@ -38,10 +38,10 @@ module "code-server" {
3838

3939
Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
4040

41-
```hcl
41+
```tf
4242
module "code-server" {
43-
source = "registry.coder.com/modules/code-server/coder"
44-
version = "1.0.0"
43+
source = "registry.coder.com/modules/code-server/coder"
44+
version = "1.0.0"
4545
agent_id = coder_agent.example.id
4646
extensions = [
4747
"dracula-theme.theme-dracula"
@@ -55,12 +55,12 @@ Enter the `<author>.<name>` into the extensions array and code-server will autom
5555

5656
Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) file:
5757

58-
```hcl
58+
```tf
5959
module "settings" {
60-
source = "registry.coder.com/modules/code-server/coder"
61-
version = "1.0.0"
62-
agent_id = coder_agent.example.id
63-
extensions = [ "dracula-theme.theme-dracula" ]
60+
source = "registry.coder.com/modules/code-server/coder"
61+
version = "1.0.0"
62+
agent_id = coder_agent.example.id
63+
extensions = ["dracula-theme.theme-dracula"]
6464
settings = {
6565
"workbench.colorTheme" = "Dracula"
6666
}
@@ -71,24 +71,24 @@ module "settings" {
7171

7272
Just run code-server in the background, don't fetch it from GitHub:
7373

74-
```hcl
74+
```tf
7575
module "settings" {
76-
source = "registry.coder.com/modules/code-server/coder"
77-
version = "1.0.0"
78-
agent_id = coder_agent.example.id
79-
extensions = [ "dracula-theme.theme-dracula", "ms-azuretools.vscode-docker" ]
76+
source = "registry.coder.com/modules/code-server/coder"
77+
version = "1.0.0"
78+
agent_id = coder_agent.example.id
79+
extensions = ["dracula-theme.theme-dracula", "ms-azuretools.vscode-docker"]
8080
}
8181
```
8282

8383
### Offline Mode
8484

8585
Just run code-server in the background, don't fetch it from GitHub:
8686

87-
```hcl
87+
```tf
8888
module "settings" {
89-
source = "registry.coder.com/modules/code-server/coder"
90-
version = "1.0.0"
89+
source = "registry.coder.com/modules/code-server/coder"
90+
version = "1.0.0"
9191
agent_id = coder_agent.example.id
92-
offline = true
92+
offline = true
9393
}
9494
```

coder-login/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: [helper]
1111

1212
Automatically logs the user into Coder when creating their workspace.
1313

14-
```hcl
14+
```tf
1515
module "coder-login" {
1616
source = "registry.coder.com/modules/coder-login/coder"
1717
version = "1.0.0"

dotfiles/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Allow developers to optionally bring their own [dotfiles repository](https://dot
1313

1414
```tf
1515
module "dotfiles" {
16-
source = "registry.coder.com/modules/dotfiles/coder"
17-
version = "1.0.0"
16+
source = "registry.coder.com/modules/dotfiles/coder"
17+
version = "1.0.0"
1818
agent_id = coder_agent.example.id
1919
}
2020
```

exoscale-instance-type/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ tags: [helper, parameter, instances, exoscale]
1010
# exoscale-instance-type
1111

1212
A parameter with all Exoscale instance types. This allows developers to select
13-
their desired virtuell machine for the workspace.
13+
their desired virtual machine for the workspace.
1414

1515
Customize the preselected parameter value:
1616

17-
```hcl
17+
```tf
1818
module "exoscale-instance-type" {
19-
source = "registry.coder.com/modules/exoscale-instance-type/coder"
19+
source = "registry.coder.com/modules/exoscale-instance-type/coder"
2020
version = "1.0.0"
2121
default = "standard.medium"
2222
}
2323
2424
resource "exoscale_compute_instance" "instance" {
25-
type = module.exoscale-instance-type.value
26-
...
25+
type = module.exoscale-instance-type.value
26+
# ...
2727
}
2828
2929
resource "coder_metadata" "workspace_info" {
@@ -42,22 +42,22 @@ resource "coder_metadata" "workspace_info" {
4242

4343
Change the display name a type using the corresponding maps:
4444

45-
```hcl
45+
```tf
4646
module "exoscale-instance-type" {
47-
source = "registry.coder.com/modules/exoscale-instance-type/coder"
47+
source = "registry.coder.com/modules/exoscale-instance-type/coder"
4848
version = "1.0.0"
4949
default = "standard.medium"
5050
custom_names = {
51-
"standard.medium": "Mittlere Instanz" # German translation
51+
"standard.medium" : "Mittlere Instanz" # German translation
5252
}
5353
custom_descriptions = {
54-
"standard.medium": "4 GB Arbeitsspeicher, 2 Kerne, 10 - 400 GB Festplatte" # German translation
54+
"standard.medium" : "4 GB Arbeitsspeicher, 2 Kerne, 10 - 400 GB Festplatte" # German translation
5555
}
5656
}
5757
5858
resource "exoscale_compute_instance" "instance" {
59-
type = module.exoscale-instance-type.value
60-
...
59+
type = module.exoscale-instance-type.value
60+
# ...
6161
}
6262
6363
resource "coder_metadata" "workspace_info" {
@@ -70,17 +70,17 @@ resource "coder_metadata" "workspace_info" {
7070

7171
![Exoscale instance types Custom](../.images/exoscale-instance-custom.png)
7272

73-
### Use category and exlude type
73+
### Use category and exclude type
7474

7575
Show only gpu1 types
7676

77-
```hcl
77+
```tf
7878
module "exoscale-instance-type" {
7979
source = "registry.coder.com/modules/exoscale-instance-type/coder"
8080
version = "1.0.0"
8181
default = "gpu.large"
8282
type_category = ["gpu"]
83-
exclude = [
83+
exclude = [
8484
"gpu2.small",
8585
"gpu2.medium",
8686
"gpu2.large",
@@ -93,8 +93,8 @@ module "exoscale-instance-type" {
9393
}
9494
9595
resource "exoscale_compute_instance" "instance" {
96-
type = module.exoscale-instance-type.value
97-
...
96+
type = module.exoscale-instance-type.value
97+
# ...
9898
}
9999
100100
resource "coder_metadata" "workspace_info" {

0 commit comments

Comments
 (0)