e42bc0ffc0
* move ServiceDiscovery into methods * add ServiceDiscoveryFactory * add serviceDiscovery field to vault.Core * refactor ConsulServiceDiscovery into separate struct * cleanup * revert accidental change to go.mod * cleanup * get rid of un-needed struct tags in vault.CoreConfig * add service_discovery parser * add ServiceDiscovery to config * cleanup * cleanup * add test for ConfigServiceDiscovery to Core * unit testing for config service_discovery stanza * cleanup * get rid of un-needed redirect_addr stuff in service_discovery stanza * improve test suite * cleanup * clean up test a bit * create docs for service_discovery * check if service_discovery is configured, but storage does not support HA * tinker with test * tinker with test * tweak docs * move ServiceDiscovery into its own package * tweak a variable name * fix comment * rename service_discovery to service_registration * tweak service_registration config * Revert "tweak service_registration config" This reverts commit 5509920a8ab4c5a216468f262fc07c98121dce35. * simplify naming * refactor into ./serviceregistration/consul
46 lines
764 B
HCL
46 lines
764 B
HCL
disable_cache = true
|
|
disable_mlock = true
|
|
|
|
ui = true
|
|
|
|
api_addr = "top_level_api_addr"
|
|
cluster_addr = "top_level_cluster_addr"
|
|
|
|
listener "tcp" {
|
|
address = "127.0.0.1:443"
|
|
}
|
|
|
|
backend "consul" {
|
|
advertise_addr = "foo"
|
|
token = "foo"
|
|
}
|
|
|
|
ha_backend "consul" {
|
|
bar = "baz"
|
|
advertise_addr = "snafu"
|
|
disable_clustering = "true"
|
|
token = "foo"
|
|
}
|
|
|
|
service_registration "consul" {
|
|
token = "foo"
|
|
}
|
|
|
|
telemetry {
|
|
statsd_address = "bar"
|
|
circonus_api_token = "baz"
|
|
}
|
|
|
|
seal "awskms" {
|
|
region = "us-east-1"
|
|
access_key = "AKIAIOSFODNN7EXAMPLE"
|
|
secret_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
|
|
}
|
|
|
|
max_lease_ttl = "10h"
|
|
default_lease_ttl = "10h"
|
|
cluster_name = "testcluster"
|
|
pid_file = "./pidfile"
|
|
raw_storage_endpoint = true
|
|
disable_sealwrap = true
|