feature(roles): render stack env files from OpenBao

Stacks with an env.j2 get their .env from OpenBao, so secrets stay out of the
repo. The address and AppRole credentials are read from files on the ansible
LXC, which keeps hostnames out of the public repo.
This commit is contained in:
kasun committed 2026-12-04 04:09:38 +01:00
1 parent 90324a0501
commit 27240cef17
4 files changed
+38 -1

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
---
# Files on the ansible LXC that hold deploy credentials. They are never committed.
homelab_secrets_dir: /etc/homelab-ansible
# OpenBao address and AppRole login, read on the ansible LXC when a stack needs secrets.
homelab_bao_url: "{{ lookup('ansible.builtin.file', homelab_secrets_dir + '/bao-url') }}"
homelab_bao_role_id: "{{ lookup('ansible.builtin.file', homelab_secrets_dir + '/bao-role-id') }}"
homelab_bao_secret_id: "{{ lookup('ansible.builtin.file', homelab_secrets_dir + '/bao-secret-id') }}"
homelab_bao_kv_mount: secret