File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ namespace: stackhpc
2
2
name : hashicorp
3
3
description : >
4
4
Hashicorp Vault/Consul deployment and configuration
5
- version : " 2.7.0 "
5
+ version : " 2.7.1 "
6
6
readme : " README.md"
7
7
authors :
8
8
- " Michał Nasiadka"
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ Role variables
33
33
* ` openbao_ca_cert ` : Path to CA certificate used to verify OpenBao server TLS cert
34
34
* ` openbao_tls_key ` : Path to TLS key to use by OpenBao
35
35
* ` openbao_tls_cert ` : Path to TLS cert to use by OpenBao
36
+ * ` openbao_tls_ca ` : Path to TLS CA certificate that can be used by peers to validate the leaders TLS
36
37
* ` openbao_log_keys ` : Whether to log the root token and unseal keys in the Ansible output. Default ` false `
37
38
* ` openbao_set_keys_fact ` : Whether to set a ` openbao_keys ` fact containing the root token and unseal keys. Default ` false `
38
39
* ` openbao_write_keys_file ` : Whether to write the root token and unseal keys to a file. Default ` false `
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ openbao_cluster_name: ""
13
13
14
14
openbao_tls_key : " "
15
15
openbao_tls_cert : " "
16
+ openbao_tls_ca : " "
16
17
17
18
openbao_protocol : " {{ 'https' if openbao_tls_key and openbao_tls_cert else 'http' }}"
18
19
@@ -44,15 +45,24 @@ openbao_config: >
44
45
{% else %}
45
46
"tls_disable": "true"
46
47
{% endif %}
48
+ }{% if not openbao_bind_addr.startswith('127.') %},
49
+ },
50
+ {
51
+ "tcp": {
52
+ "address": "127.0.0.1:8200",
53
+ "tls_disable": "true"
47
54
}
55
+ {% endif %}
48
56
}],
49
57
"storage": {
50
58
"raft": {
51
59
"node_id": "raft_{{ inventory_hostname }}",
52
60
"path": "/openbao/file",
53
61
{% if openbao_raft_leaders | length > 0 %}
54
62
"retry_join": {
55
- "leader_api_addr": "{{ openbao_protocol }}://{{ openbao_raft_leaders | first }}:{{ openbao_api_port }}"
63
+ "leader_api_addr": "{{ openbao_protocol }}://{{ openbao_raft_leaders | first }}:{{ openbao_api_port }}"{% if openbao_tls_ca %},
64
+ "leader_ca_cert_file": "/openbao/config/{{ openbao_tls_ca }}"
65
+ {% endif %}
56
66
}
57
67
{% endif %}
58
68
}
You can’t perform that action at this time.
0 commit comments