Add prerequisites section to README documenting required tools

This commit is contained in:
Atif Ali 2025-12-03 13:04:00 +00:00
parent 9115d27ca7
commit 7bd41fc92b
2 changed files with 11 additions and 4 deletions

View File

@ -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"

View File

@ -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