Add `Consul` token setting for registering `Vault`
This commit is contained in:
parent
a955001416
commit
df0bccd61b
|
@ -1,15 +1,15 @@
|
||||||
ui = true
|
ui = true
|
||||||
|
|
||||||
disable_mlock = true
|
disable_mlock = true
|
||||||
|
|
||||||
# service_registration "consul" {
|
service_registration "consul" {
|
||||||
# address = "127.0.0.1:8500"
|
address = "127.0.0.1:8500"
|
||||||
# token = "19149728-ce09-2a72-26b6-d2fc3aeecdd8"
|
token = "63c7eb0b-3e39-95e8-9c70-6e42885cb8f8"
|
||||||
# }
|
}
|
||||||
|
|
||||||
storage "raft" {
|
storage "raft" {
|
||||||
path = "/opt/vault/data"
|
path = "/opt/vault/data"
|
||||||
node_id = "<%= @HOSTNAME %>"
|
node_id = "<%= @HOSTNAME %>"
|
||||||
|
|
||||||
<% @IPS.each do |ip| %>
|
<% @IPS.each do |ip| %>
|
||||||
retry_join {
|
retry_join {
|
||||||
leader_api_addr = "http://<%= ip %>:8200"
|
leader_api_addr = "http://<%= ip %>:8200"
|
||||||
|
@ -18,7 +18,7 @@ storage "raft" {
|
||||||
}
|
}
|
||||||
|
|
||||||
api_addr = "http://<%= @IPADDR %>:8200"
|
api_addr = "http://<%= @IPADDR %>:8200"
|
||||||
cluster_addr = "http://<%= @IPADDR %>::8201"
|
cluster_addr = "http://<%= @IPADDR %>:8201"
|
||||||
|
|
||||||
# HTTPS listener
|
# HTTPS listener
|
||||||
listener "tcp" {
|
listener "tcp" {
|
||||||
|
|
Loading…
Reference in New Issue