mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
* 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
790 B
HCL
46 lines
790 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"
|
|
}
|
|
|
|
storage "consul" {
|
|
foo = "bar"
|
|
redirect_addr = "foo"
|
|
}
|
|
|
|
ha_storage "consul" {
|
|
bar = "baz"
|
|
redirect_addr = "snafu"
|
|
disable_clustering = "true"
|
|
}
|
|
|
|
service_registration "consul" {
|
|
foo = "bar"
|
|
}
|
|
|
|
telemetry {
|
|
statsd_address = "bar"
|
|
statsite_address = "foo"
|
|
dogstatsd_addr = "127.0.0.1:7254"
|
|
dogstatsd_tags = ["tag_1:val_1", "tag_2:val_2"]
|
|
prometheus_retention_time = "30s"
|
|
}
|
|
|
|
entropy "seal" {
|
|
mode = "augmentation"
|
|
}
|
|
|
|
max_lease_ttl = "10h"
|
|
default_lease_ttl = "10h"
|
|
cluster_name = "testcluster"
|
|
pid_file = "./pidfile"
|
|
raw_storage_endpoint = true
|
|
disable_sealwrap = true
|