Skip to content

Commit b3cf6fe

Browse files
committed
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.
1 parent 3de04e8 commit b3cf6fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/openbao/tasks/openbao.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
restart_policy: "always"
1313
env:
1414
BAO_LOCAL_CONFIG: "{{ openbao_config | to_json }}"
15+
BAO_ADDR: "{{ openbao_api_addr }}"
1516
command: >
1617
server
1718
become: true

0 commit comments

Comments
 (0)