From cfb1d623d9711156a1195312afa5cebadc8a6697 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 24 Aug 2022 17:31:08 +0200 Subject: Reconfigure services to use correct tricot url, TLS fails --- cluster/prod/app/core/deploy/core.hcl | 8 +- cluster/prod/app/directory/deploy/directory.hcl | 8 +- .../app/frontend/deploy/frontend-tricot-prod.hcl | 90 -------------- .../prod/app/frontend/deploy/frontend-tricot.hcl | 90 ++++++++++++++ cluster/prod/app/garage/config/garage.toml | 24 ++++ cluster/prod/app/garage/deploy/garage.hcl | 131 +++++++++++++++++++++ cluster/prod/app/garage/secrets/garage/rpc_secret | 1 + 7 files changed, 254 insertions(+), 98 deletions(-) delete mode 100644 cluster/prod/app/frontend/deploy/frontend-tricot-prod.hcl create mode 100644 cluster/prod/app/frontend/deploy/frontend-tricot.hcl create mode 100644 cluster/prod/app/garage/config/garage.toml create mode 100644 cluster/prod/app/garage/deploy/garage.hcl create mode 100644 cluster/prod/app/garage/secrets/garage/rpc_secret (limited to 'cluster/prod') diff --git a/cluster/prod/app/core/deploy/core.hcl b/cluster/prod/app/core/deploy/core.hcl index f57f21d..b87f15d 100644 --- a/cluster/prod/app/core/deploy/core.hcl +++ b/cluster/prod/app/core/deploy/core.hcl @@ -34,8 +34,8 @@ job "core" { } template { - data = "{{ key \"secrets/consul/consul-ca.crt\" }}" - destination = "secrets/consul-ca.crt" + data = "{{ key \"secrets/consul/consul.crt\" }}" + destination = "secrets/consul.crt" } template { @@ -53,8 +53,8 @@ job "core" { DIPLONAT_REFRESH_TIME=60 DIPLONAT_EXPIRATION_TIME=300 DIPLONAT_CONSUL_NODE_NAME={{ env "attr.unique.hostname" }} -DIPLONAT_CONSUL_URL=https://localhost:8501 -DIPLONAT_CONSUL_CA_CERT=/etc/diplonat/consul-ca.crt +DIPLONAT_CONSUL_URL=https://consul.service.prod.consul:8501 +DIPLONAT_CONSUL_CA_CERT=/etc/diplonat/consul.crt DIPLONAT_CONSUL_CLIENT_CERT=/etc/diplonat/consul-client.crt DIPLONAT_CONSUL_CLIENT_KEY=/etc/diplonat/consul-client.key RUST_LOG=debug diff --git a/cluster/prod/app/directory/deploy/directory.hcl b/cluster/prod/app/directory/deploy/directory.hcl index 89f5ebc..cd503fc 100644 --- a/cluster/prod/app/directory/deploy/directory.hcl +++ b/cluster/prod/app/directory/deploy/directory.hcl @@ -41,8 +41,8 @@ job "directory" { } template { - data = "{{ key \"secrets/consul/consul-ca.crt\" }}" - destination = "secrets/consul-ca.crt" + data = "{{ key \"secrets/consul/consul.crt\" }}" + destination = "secrets/consul.crt" } template { @@ -57,9 +57,9 @@ job "directory" { template { data = <