Author SHA1 Message Date
kasun 69a1c0a9fb docs: keep imported secret values as they are
Checks / Secret Scan (pull_request) Successful in 6s
Checks / Lint (pull_request) Successful in 46s
2026-12-04 04:20:25 +01:00
+1 -1
View File
@@ -61,7 +61,7 @@ The OpenBao CLI is not needed on the controller. Ansible uses the HTTP API throu
jq -Rn '[inputs | select(test("^[A-Za-z_][A-Za-z0-9_]*=")) | capture("^(?<key>[^=]+)=(?<value>.*)$")] | from_entries' .env jq -Rn '[inputs | select(test("^[A-Za-z_][A-Za-z0-9_]*=")) | capture("^(?<key>[^=]+)=(?<value>.*)$")] | from_entries' .env
``` ```
Values are stored exactly as they appear in the file, so remove any surrounding quotes first. The role writes values back unquoted, as `KEY=value`, so Compose reads them the same way it reads the original file. Import values exactly as they appear. When you set a new value, avoid `$`, `#`, quotes and spaces: Compose would interpret them.
2. Add `stacks/<stack>/env.j2` with one line per variable: 2. Add `stacks/<stack>/env.j2` with one line per variable:
``` ```