Revert "Revert "garage prod: use dynamically determined ipv6 addresses""
Quentin's fix seems to work fine.
This reverts commit e5f3b6ef0a
.
This commit is contained in:
parent
e5f3b6ef0a
commit
55c9b89cb2
1 changed files with 11 additions and 2 deletions
|
@ -6,8 +6,17 @@ db_engine = "lmdb"
|
||||||
|
|
||||||
replication_mode = "3"
|
replication_mode = "3"
|
||||||
|
|
||||||
rpc_bind_addr = "[{{ env "meta.public_ipv6" }}]:3901"
|
# IPv6 config using the ipv6 address statically defined in Nomad's node metadata
|
||||||
rpc_public_addr = "[{{ env "meta.public_ipv6" }}]:3901"
|
# make sure to put back double { and } if re-enabling this
|
||||||
|
#rpc_bind_addr = "[{ env "meta.public_ipv6" }]:3901"
|
||||||
|
#rpc_public_addr = "[{ env "meta.public_ipv6" }]:3901"
|
||||||
|
|
||||||
|
# IPv6 config using the ipv6 address dynamically detected from diplonat
|
||||||
|
{{ with $a := env "attr.unique.hostname" | printf "diplonat/autodiscovery/ipv6/%s" | key | parseJSON }}
|
||||||
|
rpc_bind_addr = "[{{ $a.address }}]:3901"
|
||||||
|
rpc_public_addr = "[{{ $a.address }}]:3901"
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
rpc_secret = "{{ key "secrets/garage/rpc_secret" | trimSpace }}"
|
rpc_secret = "{{ key "secrets/garage/rpc_secret" | trimSpace }}"
|
||||||
|
|
||||||
[consul_discovery]
|
[consul_discovery]
|
||||||
|
|
Loading…
Reference in a new issue