2022-03-26 09:10:21 +00:00
|
|
|
|
2023-08-26 15:32:23 +00:00
|
|
|
storage "raft" {
|
|
|
|
path = "/opt/vault/raft/"
|
|
|
|
node_id = "{{ inventory_hostname }}"
|
2024-01-30 17:22:36 +00:00
|
|
|
|
2023-10-29 14:39:20 +00:00
|
|
|
{% for raft_peer in vault_raft_cluster_members | rejectattr('peer', 'equalto', inventory_hostname) %}
|
|
|
|
retry_join {
|
|
|
|
leader_api_addr = "{{ raft_peer.api_addr }}"
|
|
|
|
}
|
|
|
|
{% endfor %}
|
2022-03-26 09:10:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
listener "tcp" {
|
2024-01-30 17:22:36 +00:00
|
|
|
address = "{{ vault_address }}:{{vault_port}}"
|
|
|
|
cluster_address = "{{ vault_cluster_address }}"
|
2022-03-26 09:10:21 +00:00
|
|
|
tls_disable = 1
|
|
|
|
}
|
2024-01-30 17:22:36 +00:00
|
|
|
api_addr = "{{ vault_api_addr }}"
|
|
|
|
cluster_addr = "{{vault_cluster_addr}}"
|
2022-03-26 09:10:21 +00:00
|
|
|
ui= true
|
2022-11-01 19:37:56 +00:00
|
|
|
disable_mlock = true
|
2023-08-27 13:42:33 +00:00
|
|
|
|
|
|
|
service_registration "consul" {
|
|
|
|
address = "127.0.0.1:8500"
|
|
|
|
}
|
|
|
|
|