Compare commits
4
Commits
6e2dd06b9e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66a745b3c1 | ||
|
|
3069d62fb3 | ||
|
|
72485d6037 | ||
|
|
69a1c0a9fb |
No files matched your search
@@ -19,7 +19,7 @@ Branch → PR (lint, secret scan, later `--check --diff`) → merge to protected
|
|||||||
|
|
||||||
- Keep the `/home/pi/docker/<service>/` paths, because Compose derives the project name from the folder.
|
- Keep the `/home/pi/docker/<service>/` paths, because Compose derives the project name from the folder.
|
||||||
- Ansible manages config, never data. No ownership changes under `DOCKER_DATA_ROOT` (mapped UIDs).
|
- Ansible manages config, never data. No ownership changes under `DOCKER_DATA_ROOT` (mapped UIDs).
|
||||||
- When adopting a stack: pin its image and remove its Watchtower label.
|
- When adopting a stack: remove its Watchtower label. Pinning images is a later task I'll do myself; don't flag unpinned or `:latest` images.
|
||||||
- Gitea, its runner and Postgres never auto-deploy. I trigger them from the `ansible` LXC.
|
- Gitea, its runner and Postgres never auto-deploy. I trigger them from the `ansible` LXC.
|
||||||
|
|
||||||
## Secrets
|
## Secrets
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user