diff --git a/.sample/README.md b/.sample/README.md index 4a10787..e8754f1 100644 --- a/.sample/README.md +++ b/.sample/README.md @@ -11,7 +11,7 @@ tags: [helper] -```hcl +```tf module "MODULE_NAME" { source = "registry.coder.com/modules/MODULE_NAME/coder" version = "1.0.2" @@ -26,7 +26,7 @@ module "MODULE_NAME" { Install the Dracula theme from [OpenVSX](https://open-vsx.org/): -```hcl +```tf module "MODULE_NAME" { source = "registry.coder.com/modules/MODULE_NAME/coder" version = "1.0.2" @@ -43,7 +43,7 @@ Enter the `.` into the extensions array and code-server will autom Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) file: -```hcl +```tf module "MODULE_NAME" { source = "registry.coder.com/modules/MODULE_NAME/coder" version = "1.0.2" @@ -59,7 +59,7 @@ module "MODULE_NAME" { Run code-server in the background, don't fetch it from GitHub: -```hcl +```tf module "MODULE_NAME" { source = "registry.coder.com/modules/MODULE_NAME/coder" version = "1.0.2" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b45c1f3..cebf71f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,7 +19,7 @@ $ bun test -t '' You can test a module locally by updating the source as follows -```hcl +```tf module "example" { source = "git::https://github.com//.git//?ref=" } diff --git a/README.md b/README.md index 0ee4c8d..9cf14e8 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,10 @@ Modules extend Templates to create reusable components for your development envi e.g. -```hcl +```tf module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.main.id } ``` diff --git a/aws-region/README.md b/aws-region/README.md index 6fea02a..961c639 100644 --- a/aws-region/README.md +++ b/aws-region/README.md @@ -14,10 +14,10 @@ the region closest to them. Customize the preselected parameter value: -```hcl +```tf module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.2" + version = "1.0.0" default = "us-east-1" } @@ -34,18 +34,18 @@ provider "aws" { Change the display name and icon for a region using the corresponding maps: -```hcl +```tf module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.2" + version = "1.0.0" default = "ap-south-1" custom_names = { - "ap-south-1": "Awesome Mumbai!" + "ap-south-1" : "Awesome Mumbai!" } custom_icons = { - "ap-south-1": "/emojis/1f33a.png" + "ap-south-1" : "/emojis/1f33a.png" } } @@ -60,11 +60,11 @@ provider "aws" { Hide the Asia Pacific regions Seoul and Osaka: -```hcl +```tf module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.2" - exclude = [ "ap-northeast-2", "ap-northeast-3" ] + version = "1.0.0" + exclude = ["ap-northeast-2", "ap-northeast-3"] } provider "aws" { diff --git a/azure-region/README.md b/azure-region/README.md index 8c515e4..1f20cee 100644 --- a/azure-region/README.md +++ b/azure-region/README.md @@ -11,10 +11,10 @@ tags: [helper, parameter, azure, regions] This module adds a parameter with all Azure regions, allowing developers to select the region closest to them. -```hcl +```tf module "azure_region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.2" + version = "1.0.0" default = "eastus" } @@ -31,16 +31,15 @@ resource "azurem_resource_group" "example" { Change the display name and icon for a region using the corresponding maps: -```hcl +```tf module "azure-region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.2" - + version = "1.0.0" custom_names = { - "australia": "Go Australia!" + "australia" : "Go Australia!" } custom_icons = { - "australia": "/icons/smiley.svg" + "australia" : "/icons/smiley.svg" } } @@ -55,10 +54,10 @@ resource "azurerm_resource_group" "example" { Hide all regions in Australia except australiacentral: -```hcl +```tf module "azure-region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.2" + version = "1.0.0" exclude = [ "australia", "australiacentral2", diff --git a/code-server/README.md b/code-server/README.md index 8194ac8..68ecfff 100644 --- a/code-server/README.md +++ b/code-server/README.md @@ -11,10 +11,10 @@ tags: [helper, ide, web] 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. -```hcl +```tf module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id } ``` @@ -25,7 +25,7 @@ module "code-server" { ### Pin Versions -```hcl +```tf module "code-server" { source = "registry.coder.com/modules/code-server/coder" version = "1.0.2" @@ -38,11 +38,11 @@ module "code-server" { Install the Dracula theme from [OpenVSX](https://open-vsx.org/): -```hcl +```tf module "code-server" { - source = "registry.coder.com/modules/code-server/coder" - version = "1.0.2" - agent_id = coder_agent.example.id + source = "registry.coder.com/modules/code-server/coder" + version = "1.0.0" + agent_id = coder_agent.example.id extensions = [ "dracula-theme.theme-dracula" ] @@ -55,13 +55,12 @@ Enter the `.` into the extensions array and code-server will autom Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) file: -```hcl +```tf module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id - extensions = [ "dracula-theme.theme-dracula" ] - + extensions = ["dracula-theme.theme-dracula"] settings = { "workbench.colorTheme" = "Dracula" } @@ -72,12 +71,12 @@ module "settings" { Just run code-server in the background, don't fetch it from GitHub: -```hcl +```tf module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id - extensions = [ "dracula-theme.theme-dracula", "ms-azuretools.vscode-docker" ] + extensions = ["dracula-theme.theme-dracula", "ms-azuretools.vscode-docker"] } ``` @@ -85,10 +84,10 @@ module "settings" { Just run code-server in the background, don't fetch it from GitHub: -```hcl +```tf module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id offline = true } diff --git a/coder-login/README.md b/coder-login/README.md index d8e6507..d68e088 100644 --- a/coder-login/README.md +++ b/coder-login/README.md @@ -11,7 +11,7 @@ tags: [helper] Automatically logs the user into Coder when creating their workspace. -```hcl +```tf module "coder-login" { source = "registry.coder.com/modules/coder-login/coder" version = "1.0.2" diff --git a/dotfiles/README.md b/dotfiles/README.md index 162e10c..9ffac02 100644 --- a/dotfiles/README.md +++ b/dotfiles/README.md @@ -11,10 +11,10 @@ tags: [helper] Allow developers to optionally bring their own [dotfiles repository](https://dotfiles.github.io)! Under the hood, this module uses the [coder dotfiles](https://coder.com/docs/v2/latest/dotfiles) command. -```hcl +```tf module "dotfiles" { source = "registry.coder.com/modules/dotfiles/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id } ``` diff --git a/exoscale-instance-type/README.md b/exoscale-instance-type/README.md index 1b5cfbe..41c65cd 100644 --- a/exoscale-instance-type/README.md +++ b/exoscale-instance-type/README.md @@ -14,16 +14,16 @@ their desired virtuell machine for the workspace. Customize the preselected parameter value: -```hcl +```tf module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" - version = "1.0.2" + version = "1.0.0" default = "standard.medium" } resource "exoscale_compute_instance" "instance" { type = module.exoscale-instance-type.value - ... + # ... } resource "coder_metadata" "workspace_info" { @@ -42,24 +42,24 @@ resource "coder_metadata" "workspace_info" { Change the display name a type using the corresponding maps: -```hcl +```tf module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" - version = "1.0.2" + version = "1.0.0" default = "standard.medium" custom_names = { - "standard.medium": "Mittlere Instanz" # German translation + "standard.medium" : "Mittlere Instanz" # German translation } custom_descriptions = { - "standard.medium": "4 GB Arbeitsspeicher, 2 Kerne, 10 - 400 GB Festplatte" # German translation + "standard.medium" : "4 GB Arbeitsspeicher, 2 Kerne, 10 - 400 GB Festplatte" # German translation } } resource "exoscale_compute_instance" "instance" { type = module.exoscale-instance-type.value - ... + # ... } resource "coder_metadata" "workspace_info" { @@ -76,13 +76,13 @@ resource "coder_metadata" "workspace_info" { Show only gpu1 types -```hcl +```tf module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" version = "1.0.2" default = "gpu.large" type_category = ["gpu"] - exclude = [ + exclude = [ "gpu2.small", "gpu2.medium", "gpu2.large", @@ -96,7 +96,7 @@ module "exoscale-instance-type" { resource "exoscale_compute_instance" "instance" { type = module.exoscale-instance-type.value - ... + # ... } resource "coder_metadata" "workspace_info" { diff --git a/exoscale-zone/README.md b/exoscale-zone/README.md index a383b4a..2e17ac6 100644 --- a/exoscale-zone/README.md +++ b/exoscale-zone/README.md @@ -14,10 +14,10 @@ the zone closest to them. Customize the preselected parameter value: -```hcl +```tf module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.2" + version = "1.0.0" default = "ch-dk-2" } @@ -29,7 +29,7 @@ data "exoscale_compute_template" "my_template" { resource "exoscale_compute_instance" "instance" { zone = module.exoscale-zone.value - .... + # ... } ``` @@ -41,18 +41,18 @@ resource "exoscale_compute_instance" "instance" { Change the display name and icon for a zone using the corresponding maps: -```hcl +```tf module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.2" + version = "1.0.0" default = "at-vie-1" custom_names = { - "at-vie-1": "Home Vienna" + "at-vie-1" : "Home Vienna" } custom_icons = { - "at-vie-1": "/emojis/1f3e0.png" + "at-vie-1" : "/emojis/1f3e0.png" } } @@ -63,7 +63,7 @@ data "exoscale_compute_template" "my_template" { resource "exoscale_compute_instance" "instance" { zone = module.exoscale-zone.value - .... + # ... } ``` @@ -73,11 +73,11 @@ resource "exoscale_compute_instance" "instance" { Hide the Switzerland zones Geneva and Zurich -```hcl +```tf module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.2" - exclude = [ "ch-gva-2", "ch-dk-2" ] + version = "1.0.0" + exclude = ["ch-gva-2", "ch-dk-2"] } data "exoscale_compute_template" "my_template" { @@ -87,7 +87,7 @@ data "exoscale_compute_template" "my_template" { resource "exoscale_compute_instance" "instance" { zone = module.exoscale-zone.value - .... + # ... } ``` diff --git a/filebrowser/README.md b/filebrowser/README.md index 66e8654..6dcefb5 100644 --- a/filebrowser/README.md +++ b/filebrowser/README.md @@ -11,10 +11,10 @@ tags: [helper, filebrowser] A file browser for your workspace. -```hcl +```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id } ``` @@ -25,10 +25,10 @@ module "filebrowser" { ### Serve a specific directory -```hcl +```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id folder = "/home/coder/project" } @@ -36,10 +36,10 @@ module "filebrowser" { ### Specify location of `filebrowser.db` -```hcl +```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id database_path = ".config/filebrowser.db" } diff --git a/fly-region/README.md b/fly-region/README.md index 29726ab..ced2eff 100644 --- a/fly-region/README.md +++ b/fly-region/README.md @@ -13,10 +13,10 @@ This module adds Fly.io regions to your Coder template. Regions can be whitelist We can use the simplest format here, only adding a default selection as the `atl` region. -```hcl +```tf module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.2" + version = "1.0.0" default = "atl" } ``` @@ -29,10 +29,10 @@ module "fly-region" { The regions argument can be used to display only the desired regions in the Coder parameter. -```hcl +```tf module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.2" + version = "1.0.0" default = "ams" regions = ["ams", "arn", "atl"] } @@ -44,18 +44,18 @@ module "fly-region" { Set custom icons and names with their respective maps. -```hcl +```tf module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.2" + version = "1.0.0" default = "ams" custom_icons = { - "ams" = "/emojis/1f90e.png" + "ams" = "/emojis/1f90e.png" } custom_names = { - "ams" = "We love the Netherlands!" + "ams" = "We love the Netherlands!" } } ``` diff --git a/gcp-region/README.md b/gcp-region/README.md index 986a44e..bb6063a 100644 --- a/gcp-region/README.md +++ b/gcp-region/README.md @@ -11,7 +11,7 @@ tags: [gcp, regions, parameter, helper] This module adds Google Cloud Platform regions to your Coder template. -```hcl +```tf module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" version = "1.0.2" @@ -31,7 +31,7 @@ resource "google_compute_instance" "example" { Note: setting `gpu_only = true` and using a default region without GPU support, the default will be set to `null`. -```hcl +```tf module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" version = "1.0.2" @@ -47,7 +47,7 @@ resource "google_compute_instance" "example" { ### Add all zones in the Europe West region -```hcl +```tf module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" version = "1.0.2" @@ -62,7 +62,7 @@ resource "google_compute_instance" "example" { ### Add a single zone from each region in US and Europe that has GPUs -```hcl +```tf module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" version = "1.0.2" diff --git a/git-clone/README.md b/git-clone/README.md index ea5fe67..e883bd4 100644 --- a/git-clone/README.md +++ b/git-clone/README.md @@ -11,7 +11,7 @@ tags: [git, helper] This module allows you to automatically clone a repository by URL and skip if it exists in the base directory provided. -```hcl +```tf module "git-clone" { source = "registry.coder.com/modules/git-clone/coder" version = "1.0.2" @@ -22,7 +22,7 @@ module "git-clone" { To use with [Git Authentication](https://coder.com/docs/v2/latest/admin/git-providers), add the provider by ID to your template: -```hcl +```tf data "coder_git_auth" "github" { id = "github" } @@ -32,7 +32,7 @@ data "coder_git_auth" "github" { ### Custom Path -```hcl +```tf module "git-clone" { source = "registry.coder.com/modules/git-clone/coder" version = "1.0.2" diff --git a/git-commit-signing/README.md b/git-commit-signing/README.md index c27ce67..05759d1 100644 --- a/git-commit-signing/README.md +++ b/git-commit-signing/README.md @@ -16,10 +16,10 @@ Please observe that using the SSH key that's part of your Coder account for comm This module has a chance of conflicting with the user's dotfiles / the personalize module if one of those has configuration directives that overwrite this module's / each other's git configuration. -```hcl +```tf module "git-commit-signing" { source = "registry.coder.com/modules/git-commit-signing/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id } ``` diff --git a/git-config/README.md b/git-config/README.md index 1e06c89..e95a0e3 100644 --- a/git-config/README.md +++ b/git-config/README.md @@ -11,10 +11,10 @@ tags: [helper, git] Runs a script that updates git credentials in the workspace to match the user's Coder credentials, optionally allowing to the developer to override the defaults. -```hcl +```tf module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id } ``` @@ -25,10 +25,10 @@ TODO: Add screenshot ### Allow users to override both username and email -```hcl +```tf module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id allow_email_change = true } @@ -38,10 +38,10 @@ TODO: Add screenshot ## Disallowing users from overriding both username and email -```hcl +```tf module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id allow_username_change = false allow_email_change = false diff --git a/jetbrains-gateway/README.md b/jetbrains-gateway/README.md index 9193089..a8c746b 100644 --- a/jetbrains-gateway/README.md +++ b/jetbrains-gateway/README.md @@ -11,7 +11,7 @@ tags: [ide, jetbrains, helper, parameter] This module adds a JetBrains Gateway Button to open any workspace with a single click. -```hcl +```tf module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder" version = "1.0.2" @@ -28,10 +28,10 @@ module "jetbrains_gateway" { ### Add GoLand and WebStorm with the default set to GoLand -```hcl +```tf module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id folder = "/home/coder/example" jetbrains_ides = ["GO", "WS"] diff --git a/jfrog-oauth/README.md b/jfrog-oauth/README.md index a281318..6a25f5b 100644 --- a/jfrog-oauth/README.md +++ b/jfrog-oauth/README.md @@ -14,18 +14,18 @@ Install the JF CLI and authenticate package managers with Artifactory using OAut ![JFrog OAuth](../.images/jfrog-oauth.png) -```hcl +```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id jfrog_url = "https://example.jfrog.io" username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username" package_managers = { - "npm": "npm", - "go": "go", - "pypi": "pypi" + "npm" : "npm", + "go" : "go", + "pypi" : "pypi" } } ``` @@ -41,16 +41,16 @@ This module is usable by JFrog self-hosted (on-premises) Artifactory as it requi Configure the Python pip package manager to fetch packages from Artifactory while mapping the Coder email to the Artifactory username. -```hcl +```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id jfrog_url = "https://example.jfrog.io" username_field = "email" package_managers = { - "pypi": "pypi" + "pypi" : "pypi" } } ``` @@ -69,19 +69,18 @@ pip install requests The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extension) for VS Code allows you to interact with Artifactory from within the IDE. -```hcl +```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id jfrog_url = "https://example.jfrog.io" username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username" - configure_code_server = true # Add JFrog extension configuration for code-server - + configure_code_server = true # Add JFrog extension configuration for code-server package_managers = { - "npm": "npm", - "go": "go", - "pypi": "pypi" + "npm" : "npm", + "go" : "go", + "pypi" : "pypi" } } ``` @@ -90,9 +89,9 @@ module "jfrog" { JFrog Access token is also available as a terraform output. You can use it in other terraform resources. For example, you can use it to configure an [Artifactory docker registry](https://jfrog.com/help/r/jfrog-artifactory-documentation/docker-registry) with the [docker terraform provider](https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs). -```hcl +```tf provider "docker" { - ... + # ... registry_auth { address = "https://example.jfrog.io/artifactory/api/docker/REPO-KEY" username = module.jfrog.username diff --git a/jfrog-token/README.md b/jfrog-token/README.md index 112180d..c77c052 100644 --- a/jfrog-token/README.md +++ b/jfrog-token/README.md @@ -12,17 +12,17 @@ tags: [integration, jfrog] Install the JF CLI and authenticate package managers with Artifactory using Artifactory terraform provider. -```hcl +```tf module "jfrog" { - source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.2" - agent_id = coder_agent.example.id - jfrog_url = "https://XXXX.jfrog.io" + source = "registry.coder.com/modules/jfrog-token/coder" + version = "1.0.0" + agent_id = coder_agent.example.id + jfrog_url = "https://XXXX.jfrog.io" artifactory_access_token = var.artifactory_access_token package_managers = { - "npm": "npm", - "go": "go", - "pypi": "pypi" + "npm" : "npm", + "go" : "go", + "pypi" : "pypi" } } ``` @@ -38,18 +38,17 @@ For detailed instructions, please see this [guide](https://coder.com/docs/v2/lat ### Configure npm, go, and pypi to use Artifactory local repositories -```hcl +```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id - jfrog_url = "https://example.jfrog.io" - artifactory_access_token = var.artifactory_access_token - + jfrog_url = "https://YYYY.jfrog.io" + artifactory_access_token = var.artifactory_access_token # An admin access token package_managers = { - "npm": "npm-local", - "go": "go-local", - "pypi": "pypi-local" + "npm" : "npm-local", + "go" : "go-local", + "pypi" : "pypi-local" } } ``` @@ -72,19 +71,18 @@ pip install requests The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extension) for VS Code allows you to interact with Artifactory from within the IDE. -```hcl +```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id - jfrog_url = "https://example.jfrog.io" + jfrog_url = "https://XXXX.jfrog.io" artifactory_access_token = var.artifactory_access_token configure_code_server = true # Add JFrog extension configuration for code-server - package_managers = { - "npm": "npm", - "go": "go", - "pypi": "pypi" + "npm" : "npm", + "go" : "go", + "pypi" : "pypi" } } ``` @@ -93,10 +91,10 @@ module "jfrog" { JFrog Access token is also available as a terraform output. You can use it in other terraform resources. For example, you can use it to configure an [Artifactory docker registry](https://jfrog.com/help/r/jfrog-artifactory-documentation/docker-registry) with the [docker terraform provider](https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs). -```hcl +```tf provider "docker" { - ... + # ... registry_auth { address = "https://YYYY.jfrog.io/artifactory/api/docker/REPO-KEY" username = module.jfrog.username diff --git a/jupyter-notebook/README.md b/jupyter-notebook/README.md index bda8545..e25722a 100644 --- a/jupyter-notebook/README.md +++ b/jupyter-notebook/README.md @@ -13,10 +13,10 @@ A module that adds Jupyter Notebook in your Coder template. ![Jupyter Notebook](../.images/jupyter-notebook.png) -```hcl +```tf module "jupyter-notebook" { source = "registry.coder.com/modules/jupyter-notebook/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id } ``` diff --git a/jupyterlab/README.md b/jupyterlab/README.md index 693127d..4ab7782 100644 --- a/jupyterlab/README.md +++ b/jupyterlab/README.md @@ -13,10 +13,10 @@ A module that adds JupyterLab in your Coder template. ![JupyterLab](../.images/jupyterlab.png) -```hcl +```tf module "jupyterlab" { source = "registry.coder.com/modules/jupyterlab/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id } ``` diff --git a/package.json b/package.json index 5822c4c..2e1d7b6 100644 --- a/package.json +++ b/package.json @@ -2,18 +2,24 @@ "name": "modules", "scripts": { "test": "bun test", - "fmt": "bun x prettier --plugin prettier-plugin-sh -w **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt **/*.tf .sample/main.tf", - "fmt:ci": "bun x prettier --plugin prettier-plugin-sh --check **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt -check **/*.tf .sample/main.tf", - "lint": "bun run lint.ts", - "update-version": "sh update-version.sh" + "fmt": "bun x prettier -w **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt **/*.tf .sample/main.tf", + "fmt:ci": "bun x prettier --check **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt -check **/*.tf .sample/main.tf", + "lint": "bun run lint.ts" }, "devDependencies": { "bun-types": "^1.0.18", "gray-matter": "^4.0.3", "marked": "^11.1.0", - "prettier-plugin-sh": "^0.13.1" + "prettier-plugin-sh": "^0.13.1", + "prettier-plugin-terraform-formatter": "^1.2.1" }, "peerDependencies": { "typescript": "^5.3.3" + }, + "prettier": { + "plugins": [ + "prettier-plugin-sh", + "prettier-plugin-terraform-formatter" + ] } } \ No newline at end of file diff --git a/personalize/README.md b/personalize/README.md index 8c98980..c36467f 100644 --- a/personalize/README.md +++ b/personalize/README.md @@ -11,10 +11,10 @@ tags: [helper] Run a script on workspace start that allows developers to run custom commands to personalize their workspace. -```hcl +```tf module "personalize" { source = "registry.coder.com/modules/personalize/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id } ``` diff --git a/slackme/README.md b/slackme/README.md index 9194802..a43033e 100644 --- a/slackme/README.md +++ b/slackme/README.md @@ -54,10 +54,10 @@ slackme npm run long-build 3. Restart your Coder deployment. Any Template can now import the Slack Me module, and `slackme` will be available on the `$PATH`: - ```hcl + ```tf module "slackme" { source = "registry.coder.com/modules/slackme/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id auth_provider_id = "slack" } @@ -70,10 +70,10 @@ slackme npm run long-build - `$COMMAND` is replaced with the command the user executed. - `$DURATION` is replaced with a human-readable duration the command took to execute. -```hcl +```tf module "slackme" { source = "registry.coder.com/modules/slackme/coder" - version = "1.0.2" + version = "1.0.0" agent_id = coder_agent.example.id auth_provider_id = "slack" slack_message = <