diff --git a/registry/coder/modules/vault-cli/README.md b/registry/coder/modules/vault-cli/README.md index 16f82650..1da562b7 100644 --- a/registry/coder/modules/vault-cli/README.md +++ b/registry/coder/modules/vault-cli/README.md @@ -10,6 +10,13 @@ tags: [helper, integration, vault, cli] Installs the [Vault](https://www.vaultproject.io/) CLI and optionally configures token authentication. This module focuses on CLI installation and can be used standalone or as a base for other authentication methods. +## Prerequisites + +The following tools are required in the workspace image: + +- **HTTP client**: `curl`, `wget`, or `busybox` (at least one) +- **Archive utility**: `unzip` or `busybox` (at least one) + ```tf module "vault_cli" { source = "registry.coder.com/coder/vault-cli/coder" diff --git a/registry/coder/modules/vault-cli/run.sh b/registry/coder/modules/vault-cli/run.sh index 022c29fe..9012bc7c 100644 --- a/registry/coder/modules/vault-cli/run.sh +++ b/registry/coder/modules/vault-cli/run.sh @@ -28,14 +28,14 @@ fetch() { if [ -n "$${dest}" ]; then case "$${HTTP_CLIENT}" in - curl) curl -sSL --fail "$${url}" -o "$${dest}" ;; - wget) wget -O "$${dest}" "$${url}" ;; + curl) curl -sSL --fail "$${url}" -o "$${dest}" ;; + wget) wget -O "$${dest}" "$${url}" ;; busybox) busybox wget -O "$${dest}" "$${url}" ;; esac else case "$${HTTP_CLIENT}" in - curl) curl -sSL --fail "$${url}" ;; - wget) wget -qO- "$${url}" ;; + curl) curl -sSL --fail "$${url}" ;; + wget) wget -qO- "$${url}" ;; busybox) busybox wget -qO- "$${url}" ;; esac fi