fix: [nomad-step-2] S2-fix — 4 bugs block Step 2 verification: kv/ mount missing, VAULT_ADDR, --sops required, template fallback (#912)
This commit is contained in:
parent
aa1d7a8d00
commit
f3ea5cadda
1 changed files with 4 additions and 1 deletions
|
|
@ -55,7 +55,10 @@ EOF
|
||||||
;;
|
;;
|
||||||
--dry-run)
|
--dry-run)
|
||||||
# Dry-run: just echo what would happen
|
# Dry-run: just echo what would happen
|
||||||
if vault secrets list -format=json | jq -e '."kv/"' >/dev/null 2>&1; then
|
# Use curl directly instead of vault CLI to avoid dependency on vault binary
|
||||||
|
if curl -sS -H "X-Vault-Token: ${VAULT_TOKEN:-}" \
|
||||||
|
"${VAULT_ADDR:-http://127.0.0.1:8200}/v1/sys/secrets-list" 2>/dev/null | \
|
||||||
|
jq -e '."kv/"' >/dev/null 2>&1; then
|
||||||
log "[dry-run] kv-v2 at kv/ already enabled"
|
log "[dry-run] kv-v2 at kv/ already enabled"
|
||||||
else
|
else
|
||||||
log "[dry-run] would run: vault secrets enable -path=kv -version=2 kv"
|
log "[dry-run] would run: vault secrets enable -path=kv -version=2 kv"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue