Add `Consul` token setting for registering `Vault`

This commit is contained in:
Kazuhiro MUSASHI 2024-07-15 21:39:32 +09:00
parent a955001416
commit df0bccd61b
1 changed files with 6 additions and 6 deletions

View File

@ -1,15 +1,15 @@
ui = true
disable_mlock = true
# service_registration "consul" {
# address = "127.0.0.1:8500"
# token = "19149728-ce09-2a72-26b6-d2fc3aeecdd8"
# }
service_registration "consul" {
address = "127.0.0.1:8500"
token = "63c7eb0b-3e39-95e8-9c70-6e42885cb8f8"
}
storage "raft" {
path = "/opt/vault/data"
node_id = "<%= @HOSTNAME %>"
<% @IPS.each do |ip| %>
retry_join {
leader_api_addr = "http://<%= ip %>:8200"
@ -18,7 +18,7 @@ storage "raft" {
}
api_addr = "http://<%= @IPADDR %>:8200"
cluster_addr = "http://<%= @IPADDR %>::8201"
cluster_addr = "http://<%= @IPADDR %>:8201"
# HTTPS listener
listener "tcp" {