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.
10 lines
538 B
YAML
10 lines
538 B
YAML
---
|
|
# 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
|