Skip to content

Commit 043488c

Browse files
authored
Merge branch 'master' into openbao-raft-ha-support
2 parents 8fcc54f + 1b62b6b commit 043488c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

roles/openbao/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Role variables
3939
* `openbao_write_keys_file_host`: Host on which to write root token and unseal keys. Default `localhost`
4040
* `openbao_write_keys_file_path`: Path of file to write root token and unseal keys. Default `bao-keys.json`
4141
* `openbao_raft_leaders`: List of IPs belonging to Raft leaders. Expected that the first and only entry is the IP address of the first OpenBao instance as this would be initialised whereas as the others will not.
42+
* `openbao_enable_ui`: Whether to enable user interface that could be accessed from the `openbao_api_addr`. Default `false`
4243

4344
Root and unseal keys
4445
--------------------

roles/openbao/defaults/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ openbao_cluster_port: 8201
2626

2727
openbao_raft_leaders: []
2828

29+
openbao_enable_ui: false
30+
2931
openbao_config: >
3032
{
3133
"cluster_name": "{{ openbao_cluster_name }}",
32-
"ui": false,
34+
"ui": "{{ openbao_enable_ui }}",
3335
"api_addr": "{{ openbao_api_addr }}",
3436
"cluster_addr": "{{ openbao_protocol }}://{{ openbao_cluster_addr }}",
3537
"listener": [{

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)