From ab190b0e58fb3f3b096f12f41cca9c136fa49329 Mon Sep 17 00:00:00 2001 From: FlorianGareis Date: Sat, 17 Feb 2024 22:35:34 +0000 Subject: [PATCH] Fix linting issues again --- node-via-nvm/README.md | 10 +++++----- node-via-nvm/main.tf | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/node-via-nvm/README.md b/node-via-nvm/README.md index 3dd85a5..69db801 100644 --- a/node-via-nvm/README.md +++ b/node-via-nvm/README.md @@ -19,7 +19,6 @@ module "node-via-nvm" { } ``` - ### Install multiple versions This installs multiple versions of node @@ -41,12 +40,13 @@ module "node-via-nvm" { ### Full example A example with all available options: + ```tf module "node-via-nvm" { - source = "registry.coder.com/modules/node-via-nvm/coder" - version = "1.0.2" - agent_id = coder_agent.example.id - nvm_version = "v0.39.7" + source = "registry.coder.com/modules/node-via-nvm/coder" + version = "1.0.2" + agent_id = coder_agent.example.id + nvm_version = "v0.39.7" nvm_install_prefix = "/opt/nvm" node_versions = [ "16", diff --git a/node-via-nvm/main.tf b/node-via-nvm/main.tf index 51fd192..0b948d7 100644 --- a/node-via-nvm/main.tf +++ b/node-via-nvm/main.tf @@ -29,7 +29,7 @@ variable "nvm_install_prefix" { variable "node_versions" { type = list(string) description = "A list of node versions to install." - default = ["node"] + default = ["node"] } variable "default_node_version" { @@ -40,6 +40,7 @@ variable "default_node_version" { resource "coder_script" "node" { agent_id = var.agent_id + display_name = "node-via-nvm" script = templatefile("${path.module}/run.sh", { NVM_VERSION : var.nvm_version, INSTALL_PREFIX : var.nvm_install_prefix,