From b3cf6fe58ea1c5af1688407d060d05c14c8162d1 Mon Sep 17 00:00:00 2001 From: Jack Hodgkiss Date: Tue, 13 May 2025 17:17:32 +0100 Subject: [PATCH] feat: set `BAO_ADDR` at container runtime As `BAO_ADDR` defaults to `https://127.0.0.1:8200` it means that if the configuration has choosen a different protocol, IP or port it will not work without first exporting a new variable within the shell. We can avoid this minor inconvenience by setting `BAO_ADDR` when starting the container. --- roles/openbao/tasks/openbao.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/openbao/tasks/openbao.yml b/roles/openbao/tasks/openbao.yml index c29dcd0..ce22977 100644 --- a/roles/openbao/tasks/openbao.yml +++ b/roles/openbao/tasks/openbao.yml @@ -12,6 +12,7 @@ restart_policy: "always" env: BAO_LOCAL_CONFIG: "{{ openbao_config | to_json }}" + BAO_ADDR: "{{ openbao_api_addr }}" command: > server become: true