2022-03-13 05:35:31 +00:00
|
|
|
ui = true
|
|
|
|
disable_mlock = true
|
|
|
|
|
2024-07-15 12:39:32 +00:00
|
|
|
service_registration "consul" {
|
|
|
|
address = "127.0.0.1:8500"
|
|
|
|
token = "63c7eb0b-3e39-95e8-9c70-6e42885cb8f8"
|
|
|
|
}
|
2022-03-13 05:35:31 +00:00
|
|
|
|
|
|
|
storage "raft" {
|
|
|
|
path = "/opt/vault/data"
|
|
|
|
node_id = "<%= @HOSTNAME %>"
|
2024-07-15 12:39:32 +00:00
|
|
|
|
2022-03-13 05:35:31 +00:00
|
|
|
<% @IPS.each do |ip| %>
|
|
|
|
retry_join {
|
|
|
|
leader_api_addr = "http://<%= ip %>:8200"
|
|
|
|
}
|
|
|
|
<% end %>
|
|
|
|
}
|
|
|
|
|
|
|
|
api_addr = "http://<%= @IPADDR %>:8200"
|
2024-07-15 12:39:32 +00:00
|
|
|
cluster_addr = "http://<%= @IPADDR %>:8201"
|
2022-03-13 05:35:31 +00:00
|
|
|
|
|
|
|
# HTTPS listener
|
|
|
|
listener "tcp" {
|
|
|
|
address = "0.0.0.0:8200"
|
|
|
|
cluster_address = "0.0.0.0:8201"
|
|
|
|
|
|
|
|
tls_disable = true
|
|
|
|
# tls_cert_file = "/opt/vault/tls/tls.crt"
|
|
|
|
# tls_key_file = "/opt/vault/tls/tls.key"
|
|
|
|
}
|