From c15c2f3de82f3f8a988b344a261adcab144a77ca Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 10 Jul 2022 14:33:47 +0900 Subject: [PATCH] Start `Consul` after `Vault` generates the jwt token. ``` --- a/cookbooks/consul/files/etc/systemd/system/consul.service +++ b/cookbooks/consul/files/etc/systemd/system/consul.service @@ -2,7 +2,7 @@ Description="HashiCorp Consul - A service mesh solution" Documentation=https://www.consul.io/ Requires=network-online.target -After=network-online.target +After=network-online.target vault-agent-consul-jwt.target ConditionFileNotEmpty=/etc/consul.d/consul.hcl [Service] ``` --- cookbooks/consul/files/etc/systemd/system/consul.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/consul/files/etc/systemd/system/consul.service b/cookbooks/consul/files/etc/systemd/system/consul.service index ae0cb84..f0d743d 100644 --- a/cookbooks/consul/files/etc/systemd/system/consul.service +++ b/cookbooks/consul/files/etc/systemd/system/consul.service @@ -2,7 +2,7 @@ Description="HashiCorp Consul - A service mesh solution" Documentation=https://www.consul.io/ Requires=network-online.target -After=network-online.target +After=network-online.target vault-agent-consul-jwt.target ConditionFileNotEmpty=/etc/consul.d/consul.hcl [Service]