Add prerequisites section to README documenting required tools
This commit is contained in:
parent
9115d27ca7
commit
7bd41fc92b
@ -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.
|
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
|
```tf
|
||||||
module "vault_cli" {
|
module "vault_cli" {
|
||||||
source = "registry.coder.com/coder/vault-cli/coder"
|
source = "registry.coder.com/coder/vault-cli/coder"
|
||||||
|
|||||||
@ -28,14 +28,14 @@ fetch() {
|
|||||||
|
|
||||||
if [ -n "$${dest}" ]; then
|
if [ -n "$${dest}" ]; then
|
||||||
case "$${HTTP_CLIENT}" in
|
case "$${HTTP_CLIENT}" in
|
||||||
curl) curl -sSL --fail "$${url}" -o "$${dest}" ;;
|
curl) curl -sSL --fail "$${url}" -o "$${dest}" ;;
|
||||||
wget) wget -O "$${dest}" "$${url}" ;;
|
wget) wget -O "$${dest}" "$${url}" ;;
|
||||||
busybox) busybox wget -O "$${dest}" "$${url}" ;;
|
busybox) busybox wget -O "$${dest}" "$${url}" ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
case "$${HTTP_CLIENT}" in
|
case "$${HTTP_CLIENT}" in
|
||||||
curl) curl -sSL --fail "$${url}" ;;
|
curl) curl -sSL --fail "$${url}" ;;
|
||||||
wget) wget -qO- "$${url}" ;;
|
wget) wget -qO- "$${url}" ;;
|
||||||
busybox) busybox wget -qO- "$${url}" ;;
|
busybox) busybox wget -qO- "$${url}" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user